Commit 2f85edc8 authored by Frederik Gladhorn's avatar Frederik Gladhorn

QString: prefer single .arg call and QStringLiteral

parent a5a83abd
......@@ -120,9 +120,7 @@ void kis_assert_x_exception(const char *assertion,
{
QString res =
QString("ASSERT failure in %1: \"%2\" (%3)")
.arg(where)
.arg(what)
.arg(assertion);
.arg(where, what, assertion);
kis_assert_common(res.toLatin1().data(), file, line, true, false);
}
......@@ -22,15 +22,14 @@
QString KritaVersionWrapper::versionString(bool checkGit)
{
QString kritaVersion(KRITA_VERSION_STRING);
QString kritaVersion = QStringLiteral(KRITA_VERSION_STRING);
QString version = kritaVersion;
if (checkGit) {
#ifdef KRITA_GIT_SHA1_STRING
QString gitVersion(KRITA_GIT_SHA1_STRING);
version = QString("%1 (git %2)").arg(kritaVersion).arg(gitVersion).toLatin1();
QString gitVersion = QStringLiteral(KRITA_GIT_SHA1_STRING);
version = QStringLiteral("%1 (git %2)").arg(kritaVersion, gitVersion);
#endif
}
return version;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment