From f915997d70d93749bd3bed7027784267f8a989cb Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 23 Dec 2023 11:13:52 -0500 Subject: [PATCH] Use QList::takeFirst in game runner --- launcher/src/gamerunner.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/launcher/src/gamerunner.cpp b/launcher/src/gamerunner.cpp index b359622..003b1e6 100644 --- a/launcher/src/gamerunner.cpp +++ b/launcher/src/gamerunner.cpp @@ -251,8 +251,7 @@ void GameRunner::launchExecutable(const Profile &profile, QProcess *process, con arguments.append(args); - auto executable = arguments[0]; - arguments.removeFirst(); + const QString executable = arguments.takeFirst(); if (isGame) process->setWorkingDirectory(profile.gamePath() + QStringLiteral("/game/"));