Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] Thanks Clazy!

This commit is contained in:
Mateusz Skowroński
2019-02-11 15:39:14 +01:00
committed by wmayer
parent 216106e407
commit 317bcd59c9
36 changed files with 177 additions and 192 deletions
+1 -1
View File
@@ -468,7 +468,7 @@ PythonConsole::PythonConsole(QWidget *parent)
#endif
d->info = QString::fromLatin1("Python %1 on %2\n"
"Type 'help', 'copyright', 'credits' or 'license' for more information.")
.arg(QString::fromLatin1(version)).arg(QString::fromLatin1(platform));
.arg(QString::fromLatin1(version), QString::fromLatin1(platform));
d->output = d->info;
printPrompt(PythonConsole::Complete);
}