Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor refactoring of main cpp #3191

Merged

Conversation

pljones
Copy link
Collaborator

@pljones pljones commented Oct 15, 2023

Short description of changes

There are four very small changes to tidy up src/main.ccp in this pull request:

  • Minor formatting changes
    This commit literally adjusts spacing for consistency.
  • Adjust #ifdef block
    To avoid strange handling of a { ... } block, I've adjusted a #ifdef position and duplicated a line of code.
  • Adjust "use translations"
    At the point bUseTranslation is used, we will only use the result in the GUI, so code adjusted to avoid duplication.
  • Use single application exec
    We always declare and assign pApp to something with an exec() 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

  • I've verified that this Pull Request follows the general code principles
  • I tested my code and it does what I want
  • My code follows the style guide
  • I waited some time after this Pull Request was opened and all GitHub checks completed without errors.
  • I've filled all the content above

@pljones pljones added the refactoring Non-behavioural changes, Code cleanup label Oct 15, 2023
@pljones pljones self-assigned this Oct 15, 2023
@pljones pljones added this to the Release 3.11.0 milestone Oct 15, 2023
@pljones pljones force-pushed the patch/minor-refactoring-of-main_cpp branch from 2f0d43a to e16bd48 Compare October 15, 2023 16:46
@pljones pljones force-pushed the patch/minor-refactoring-of-main_cpp branch from 56def36 to 582eee0 Compare October 22, 2023 08:54
Copy link
Member

@ann0see ann0see left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Main open question:
State of translation of CLI

src/main.cpp Show resolved Hide resolved
src/main.cpp Show resolved Hide resolved
src/main.cpp Show resolved Hide resolved
@pljones
Copy link
Collaborator Author

pljones commented Oct 27, 2023

Main open question: State of translation of CLI

See #3195

Copy link
Member

@ann0see ann0see left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Otherwise it looks good. Thanks

@pljones pljones merged commit 1265a7f into jamulussoftware:main Nov 2, 2023
11 checks passed
@pljones pljones deleted the patch/minor-refactoring-of-main_cpp branch November 2, 2023 17:21
@pljones
Copy link
Collaborator Author

pljones commented Nov 2, 2023

https://github.com/jamulussoftware/jamulus/actions/runs/6736061602

The MacOS Legacy build has failed twice... I'll kick it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Non-behavioural changes, Code cleanup
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants