forked from qt-creator/qt-creator
iOS: Fix compiler warnings
warning: loop variable ‘extraArgument’ creates a copy from type ‘const QString’ [-Wrange-loop-construct]
507 | for (const QString extraArgument : extraArgs) {
| ^~~~~~~~~~~~~
etc.
Amends 1241761035
Change-Id: I883f675bd42a38fb4547a6b1c06dba6c5db1938c
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -504,7 +504,7 @@ void launchApp(QFutureInterface<SimulatorControl::ResponseData> &fi,
|
||||
if (waitForDebugger)
|
||||
args.insert(1, "-w");
|
||||
|
||||
for (const QString extraArgument : extraArgs) {
|
||||
for (const QString &extraArgument : extraArgs) {
|
||||
if (!extraArgument.trimmed().isEmpty())
|
||||
args << extraArgument;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user