Commit 299722a7 authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Use QLatin1String for concatenation

And + should work here exactly like %, since QStringBuilder is typically
enabled by default.
parent 94745b55
Pipeline #213803 passed with stage
in 2 minutes and 53 seconds
......@@ -31,9 +31,9 @@ QString ProfileWriter::getPath(const Profile::Ptr &profile)
{
// If any changes are made to this location, check that programs using
// the Konsole part can write/save profiles
static const QString localDataLocation = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/konsole");
static const QString localDataLocation = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1String("/konsole");
return localDataLocation % QLatin1String("/") % profile->untranslatedName() % QLatin1String(".profile");
return localDataLocation + QLatin1Char('/') + profile->untranslatedName() + QLatin1String(".profile");
}
void ProfileWriter::writeProperties(KConfig &config, const Profile::Ptr &profile)
......
Supports Markdown
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