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 f9a1e67e authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

parent a83ef948
......@@ -41,7 +41,7 @@ bool ContactGrantleeEmail::preferred() const
{
const QStringList value = mEmail.parameters().value(QStringLiteral("type"));
//Validate PREF and pref
return value.contains(QStringLiteral("pref"), Qt::CaseInsensitive);
return value.contains(QLatin1String("pref"), Qt::CaseInsensitive);
}
QString ContactGrantleeEmail::emailFormatted() const
......
......@@ -41,5 +41,5 @@ bool ContactGrantleeWebSite::preferred() const
{
const QStringList value = mResourceLocator.parameters().value(QStringLiteral("type"));
//Validate PREF and pref
return value.contains(QStringLiteral("pref"), Qt::CaseInsensitive);
return value.contains(QLatin1String("pref"), Qt::CaseInsensitive);
}
......@@ -97,7 +97,7 @@ private:
bool KAddressBookImportExportPrivate::initializePlugins()
{
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("kaddressbook"), [](const KPluginMetaData &md) {
return md.serviceTypes().contains(QStringLiteral("KAddressBook/ImportExportPlugin"));
return md.serviceTypes().contains(QLatin1String("KAddressBook/ImportExportPlugin"));
});
const QPair<QStringList, QStringList> pair = PimCommon::PluginUtil::loadPluginSetting(configGroupName(), configPrefixSettingKey());
......
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