Avoid another warning about shadowing

This commit is contained in:
Martchus 2023-05-21 19:08:19 +02:00
parent fdb9e613ef
commit 41b26d7f71
1 changed files with 2 additions and 2 deletions

View File

@ -229,8 +229,8 @@ static int runApplication(int argc, const char *const *argv)
QGuiApplication::setQuitOnLastWindowClosed(false);
// stop possibly running instance if --replace is present
if (replaceArg.isPresent()) {
const char *const argv[] = { parser.executable(), quitArg.name() };
SingleInstance::passArgsToRunningInstance(2, argv, SingleInstance::applicationId(), true);
const char *const replaceArgs[] = { parser.executable(), quitArg.name() };
SingleInstance::passArgsToRunningInstance(2, replaceArgs, SingleInstance::applicationId(), true);
}
auto singleInstance = SingleInstance(argc, argv, newInstanceArg.isPresent(), replaceArg.isPresent());
networkAccessManager().setParent(&singleInstance);