summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-04 20:39:21 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-05 07:21:17 (GMT)
commit422359fe79b9313a45aff6cdbb6ef36d6fc52a46 (patch)
treea85164df2411e36b28e6419c4d68033c2d3530f1 /Source/QtDialog
parent1ffe47e37f734620825b6eb6f3147b53f091ca83 (diff)
downloadCMake-422359fe79b9313a45aff6cdbb6ef36d6fc52a46.zip
CMake-422359fe79b9313a45aff6cdbb6ef36d6fc52a46.tar.gz
CMake-422359fe79b9313a45aff6cdbb6ef36d6fc52a46.tar.bz2
CMakeSetupDialog: use multi-arg
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/CMakeSetupDialog.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx
index 3541da4..57f8e10 100644
--- a/Source/QtDialog/CMakeSetupDialog.cxx
+++ b/Source/QtDialog/CMakeSetupDialog.cxx
@@ -1175,12 +1175,9 @@ void CMakeSetupDialog::showUserChanges()
value = prop.Value.toString();
}
- QString line("%1:%2=");
- line = line.arg(prop.Key);
- line = line.arg(type);
-
- command += QString("-D%1\"%2\" ").arg(line).arg(value);
- cache += QString("%1%2\n").arg(line).arg(value);
+ QString const line = QString("%1:%2=").arg(prop.Key, type);
+ command += QString("-D%1\"%2\" ").arg(line, value);
+ cache += QString("%1%2\n").arg(line, value);
}
textedit->append(tr("Commandline options:"));