Minor refactoring of main cpp #3191
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Short description of changes
There are four very small changes to tidy up
src/main.ccpin this pull request:This commit literally adjusts spacing for consistency.
To avoid strange handling of a
{ ... }block, I've adjusted a#ifdefposition and duplicated a line of code.At the point
bUseTranslationis used, we will only use the result in the GUI, so code adjusted to avoid duplication.We always declare and assign
pAppto something with anexec()method and we only create one instance that can be executed, so duplicate code removed for clarity.CHANGELOG: Refactor src/main.cpp
Context: Fixes an issue?
Refactoring for good code hygiene.
Does this change need documentation? What needs to be documented and how?
No change to application behaviour.
Status of this Pull Request
Can be merged.
What is missing until this pull request can be merged?
Can be merged after review.
Checklist