Commit 38c80064 authored by Laurent Montel's avatar Laurent Montel 😁

Use QLAton1String

parent 73c03a7c
......@@ -72,7 +72,7 @@ public:
void CustomToolsPluginManagerPrivate::initializePluginList()
{
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("pimcommon"), [](const KPluginMetaData &md) {
return md.serviceTypes().contains(QStringLiteral("PimCommonCustomTools/Plugin"));
return md.serviceTypes().contains(QLatin1String("PimCommonCustomTools/Plugin"));
});
QVectorIterator<KPluginMetaData> i(plugins);
......
......@@ -111,7 +111,7 @@ void SpellCheckLineEdit::insertFromMimeData(const QMimeData *source)
// replace \r with \n to make xterm pastes happy
pasteText.replace(QLatin1Char('\r'), QLatin1Char('\n'));
// remove blank lines
while (pasteText.contains(QStringLiteral("\n\n"))) {
while (pasteText.contains(QLatin1String("\n\n"))) {
pasteText.replace(QStringLiteral("\n\n"), QStringLiteral("\n"));
}
......
......@@ -305,7 +305,7 @@ public:
const QMap<QByteArray, KIMAP::Acl::Rights> rights = attribute->rights();
QString resource = collection.resource();
if (resource.contains(QStringLiteral("akonadi_kolabproxy_resource"))) {
if (resource.contains(QLatin1String("akonadi_kolabproxy_resource"))) {
const QString basename = Akonadi::ServerManager::agentServiceName(Akonadi::ServerManager::Agent,
QStringLiteral("akonadi_kolabproxy_resource"));
......
......@@ -81,7 +81,7 @@ QString CreateResource::createResource(const QString &resources, const QString &
// check if unique instance already exists
qCDebug(PIMCOMMONAKONADI_LOG) << type.capabilities();
if (type.capabilities().contains(QStringLiteral("Unique"))) {
if (type.capabilities().contains(QLatin1String("Unique"))) {
const AgentInstance::List lstInstances = AgentManager::self()->instances();
for (const AgentInstance &instance : lstInstances) {
qCDebug(PIMCOMMONAKONADI_LOG) << instance.type().identifier() << (instance.type() == type);
......
......@@ -74,7 +74,7 @@ void ImapResourceCapabilitiesManager::slotCapabilities(QDBusPendingCallWatcher *
if (reply.isValid()) {
if (watcher->property("identifier").isValid()) {
const QStringList capabilities = reply.value();
mImapResource.insert(watcher->property("identifier").toString(), capabilities.contains(QStringLiteral("ANNOTATEMORE")));
mImapResource.insert(watcher->property("identifier").toString(), capabilities.contains(QLatin1String("ANNOTATEMORE")));
}
}
watcher->deleteLater();
......
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