Skip to content

Commit f54d4c7

Browse files
authored
Pass argc as reference to reinitializeAsQApplication (fixes flameshot-org#3367) (flameshot-org#3370)
* Pass argc as reference to reinitializeAsQApplication (fixes flameshot-org#3367) * Formatting
1 parent a8a3fd9 commit f54d4c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void configureApp(bool gui)
117117

118118
// TODO find a way so we don't have to do this
119119
/// Recreate the application as a QApplication
120-
void reinitializeAsQApplication(int argc, char* argv[])
120+
void reinitializeAsQApplication(int& argc, char* argv[])
121121
{
122122
delete QCoreApplication::instance();
123123
new QApplication(argc, argv);

0 commit comments

Comments
 (0)