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

This commit is contained in:
Mateusz Skowroński
2019-01-30 19:43:13 +01:00
committed by wmayer
parent f98e930185
commit ac508516da
36 changed files with 177 additions and 192 deletions

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);
}