Use QLatin1String overload for QString::compare

GIT_SILENT
parent dd8121b9
......@@ -120,7 +120,7 @@ void KDevelopSessions::match(Plasma::RunnerContext &context)
bool listAll = false;
if (term.startsWith(QStringLiteral("kdevelop"), Qt::CaseInsensitive)) {
if (term.trimmed().compare(QStringLiteral("kdevelop"), Qt::CaseInsensitive) == 0) {
if (term.trimmed().compare(QLatin1String("kdevelop"), Qt::CaseInsensitive) == 0) {
listAll = true;
term.clear();
} else if (term.at(8) == QLatin1Char(' ') ) {
......
......@@ -312,5 +312,5 @@ QString MakeJob::environmentProfile() const
bool MakeJob::isNMake(const QString& makeBin)
{
return !QFileInfo(makeBin).baseName().compare(QStringLiteral("nmake"), Qt::CaseInsensitive);
return !QFileInfo(makeBin).baseName().compare(QLatin1String("nmake"), Qt::CaseInsensitive);
}
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