Commit dbe08903 authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

parent b2f5a6b0
......@@ -255,7 +255,7 @@ void OperaSettings::readIdentity(const KConfigGroup &grp)
if (!signatureFile.isEmpty()) {
KIdentityManagement::Signature signature;
const int signatureHtml = grp.readEntry(QStringLiteral("Signature is HTML"), -1);
if (signatureFile.contains(QStringLiteral("{Preferences}"))) {
if (signatureFile.contains(QLatin1String("{Preferences}"))) {
signatureFile.replace(QStringLiteral("{Preferences}"), MailImporter::FilterOpera::defaultSettingsPath() + QStringLiteral("/"));
}
......
......@@ -59,7 +59,7 @@ public:
void ShortUrlEnginePluginManagerPrivate::initializePlugins()
{
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("pimcommon"), [](const KPluginMetaData &md) {
return md.serviceTypes().contains(QStringLiteral("PimCommonShortUrlEngine/Plugin"));
return md.serviceTypes().contains(QLatin1String("PimCommonShortUrlEngine/Plugin"));
});
QVectorIterator<KPluginMetaData> i(plugins);
......
......@@ -1246,7 +1246,7 @@ public:
{
// filter out known paths that don't belong to this type of urlmanager.
// kolab/issue4054 msg27201
if (path.contains(QStringLiteral("addToAddressBook:")) || path.contains(QStringLiteral("updateToAddressBook"))) {
if (path.contains(QLatin1String("addToAddressBook:")) || path.contains(QLatin1String("updateToAddressBook"))) {
return false;
}
......
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