Commit 190b6a93 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QLatin1String in join/startswith/endsWith/contains + QString::replace...

Use QLatin1String in join/startswith/endsWith/contains + QString::replace operates on the same object, no need to reassign
parent f79aee2d
......@@ -31,7 +31,7 @@ QString KPIM::AddresseeLineEditUtil::adaptPasteMails(const QString &str)
// remove trailing commas and whitespace
(*it).remove(QRegularExpression(QStringLiteral(",?\\s*$")));
}
newText = lines.join(QStringLiteral(", "));
newText = lines.join(QLatin1String(", "));
if (newText.startsWith(QLatin1String("mailto:"))) {
const QUrl url(newText);
......
......@@ -942,7 +942,7 @@ void AddresseeLineEdit::expandGroups()
addresses.removeAll(group.name());
expandJob->start();
}
setText(addresses.join(QStringLiteral(", ")));
setText(addresses.join(QLatin1String(", ")));
d->groupsClear();
}
......
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