Commit 02682abc authored by Laurent Montel's avatar Laurent Montel 😁

Use QLAtin1String

parent f5fb47e1
......@@ -163,7 +163,7 @@ void SMTPConfigWidget::init()
d->resetAuthCapabilities();
if (!KProtocolInfo::capabilities(SMTP_PROTOCOL).contains(QStringLiteral("SASL"))) {
if (!KProtocolInfo::capabilities(SMTP_PROTOCOL).contains(QLatin1String("SASL"))) {
d->ui.authCombo->removeItem(d->ui.authCombo->findData(
Transport::EnumAuthenticationType::NTLM));
d->ui.authCombo->removeItem(d->ui.authCombo->findData(
......
......@@ -72,7 +72,7 @@ bool TransportPluginManagerPrivate::initializePlugins()
return true;
}
const QVector<KPluginMetaData> plugins = KPluginLoader::findPlugins(QStringLiteral("mailtransport"), [](const KPluginMetaData &md) {
return md.serviceTypes().contains(QStringLiteral("MailTransport/Plugin"));
return md.serviceTypes().contains(QLatin1String("MailTransport/Plugin"));
});
QVectorIterator<KPluginMetaData> i(plugins);
......
......@@ -65,7 +65,7 @@ QVector<MailTransport::TransportAbstractPluginInfo> AkonadiMailTransportPlugin::
for (const AgentType &atype : AgentManager::self()->types()) {
// TODO probably the string "MailTransport" should be #defined somewhere
// and used like that in the resources (?)
if (atype.capabilities().contains(QStringLiteral("MailTransport"))) {
if (atype.capabilities().contains(QLatin1String("MailTransport"))) {
MailTransport::TransportAbstractPluginInfo info;
info.name = atype.name();
info.description = atype.description();
......
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