Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 8e686c68 authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

parent f94845eb
......@@ -36,11 +36,11 @@ QString KPIM::AddresseeLineEditUtil::adaptPasteMails(QString str)
if (newText.startsWith(QLatin1String("mailto:"))) {
const QUrl url(newText);
newText = url.path();
} else if (newText.contains(QStringLiteral(" at "))) {
} else if (newText.contains(QLatin1String(" at "))) {
// Anti-spam stuff
newText.replace(QStringLiteral(" at "), QStringLiteral("@"));
newText.replace(QStringLiteral(" dot "), QStringLiteral("."));
} else if (newText.contains(QStringLiteral("(at)"))) {
} else if (newText.contains(QLatin1String("(at)"))) {
newText.replace(QRegularExpression(QStringLiteral("\\s*\\(at\\)\\s*")), QStringLiteral("@"));
}
return newText;
......
......@@ -72,7 +72,7 @@ bool AddressessLineEditPluginManagerPrivate::initializePlugins()
return true;
}
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("addressline"), [](const KPluginMetaData &md) {
return md.serviceTypes().contains(QStringLiteral("AddressLineEdit/Plugin"));
return md.serviceTypes().contains(QLatin1String("AddressLineEdit/Plugin"));
});
QVectorIterator<KPluginMetaData> i(plugins);
......
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