Commit 29aacfdf authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

parent 7dafb8c9
......@@ -145,8 +145,8 @@ void SpecialNotifierJob::emitNotification(const QPixmap &pixmap)
if (NewMailNotifierAgentSettings::textToSpeakEnabled()) {
if (!NewMailNotifierAgentSettings::textToSpeak().isEmpty()) {
QString message = NewMailNotifierAgentSettings::textToSpeak();
message.replace(QStringLiteral("%s"), mSubject.toHtmlEscaped());
message.replace(QStringLiteral("%f"), mFrom.toHtmlEscaped());
message.replace(QLatin1String("%s"), mSubject.toHtmlEscaped());
message.replace(QLatin1String("%f"), mFrom.toHtmlEscaped());
Q_EMIT say(message);
}
}
......
......@@ -78,8 +78,8 @@ static QString settingsToUrl(const QWizard *wizard, const QString &protocol)
QString username = wizard->field(QStringLiteral("credentialsUserName")).toString();
QString localPart(username);
localPart.remove(QRegExp(QLatin1String("@.*$")));
pathPattern.replace(QStringLiteral("$user$"), username);
pathPattern.replace(QStringLiteral("$localpart$"), localPart);
pathPattern.replace(QLatin1String("$user$"), username);
pathPattern.replace(QLatin1String("$localpart$"), localPart);
QString providerName;
if (!service->property(QStringLiteral("X-DavGroupware-Provider")).isNull()) {
providerName = service->property(QStringLiteral("X-DavGroupware-Provider")).toString();
......
......@@ -94,8 +94,8 @@ qlonglong OXUtils::readNumber(const QString &text)
QString OXUtils::readString(const QString &text)
{
QString value(text);
value.replace(QStringLiteral("\\\""), QStringLiteral("\""));
value.replace(QStringLiteral("\\\\"), QStringLiteral("\\"));
value.replace(QLatin1String("\\\""), QLatin1String("\""));
value.replace(QLatin1String("\\\\"), QLatin1String("\\"));
return value;
}
......
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