Commit 91735f22 authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

parent 67e24668
......@@ -310,9 +310,9 @@ identity Ispdb::createIdentity(const QDomElement &n)
QString Ispdb::replacePlaceholders(const QString &in)
{
QString out(in);
out.replace(QStringLiteral("%EMAILLOCALPART%"), mAddr.localPart);
out.replace(QStringLiteral("%EMAILADDRESS%"), mAddr.asString());
out.replace(QStringLiteral("%EMAILDOMAIN%"), mAddr.domain);
out.replace(QLatin1String("%EMAILLOCALPART%"), mAddr.localPart);
out.replace(QLatin1String("%EMAILADDRESS%"), mAddr.asString());
out.replace(QLatin1String("%EMAILDOMAIN%"), mAddr.domain);
return out;
}
......
......@@ -89,7 +89,7 @@ void Resource::create()
// check if unique instance already exists
qCDebug(ACCOUNTWIZARD_LOG) << type.capabilities();
if (type.capabilities().contains(QStringLiteral("Unique"))) {
if (type.capabilities().contains(QLatin1String("Unique"))) {
const Akonadi::AgentInstance::List lstAgent = AgentManager::self()->instances();
for (const AgentInstance &instance : lstAgent) {
qCDebug(ACCOUNTWIZARD_LOG) << instance.type().identifier() << (instance.type() == type);
......
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