Skip to content

Commit

Permalink
Pass argc as reference to reinitializeAsQApplication (fixes #3367) (#…
Browse files Browse the repository at this point in the history
…3370)

* Pass argc as reference to reinitializeAsQApplication (fixes #3367)

* Formatting
  • Loading branch information
marceldev89 authored Oct 9, 2023
1 parent a8a3fd9 commit f54d4c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void configureApp(bool gui)

// TODO find a way so we don't have to do this
/// Recreate the application as a QApplication
void reinitializeAsQApplication(int argc, char* argv[])
void reinitializeAsQApplication(int& argc, char* argv[])
{
delete QCoreApplication::instance();
new QApplication(argc, argv);
Expand Down

0 comments on commit f54d4c7

Please sign in to comment.