Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit e1eaacb8 authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

parent 4e3ec0dc
......@@ -345,7 +345,7 @@ HeaderStyleUtil::xfaceSettings HeaderStyleUtil::xface(const MessageViewer::Heade
} else if (!photoMemento->photo().url().isEmpty()) {
settings.photoURL = photoMemento->photo().url();
if (settings.photoURL.startsWith(QLatin1Char('/'))) {
settings.photoURL.prepend(QStringLiteral("file:"));
settings.photoURL.prepend(QLatin1String("file:"));
}
} else if (!photoMemento->gravatarPixmap().isNull()) {
const QImage photo = photoMemento->gravatarPixmap().toImage();
......
......@@ -2508,7 +2508,7 @@ QString ViewerPrivate::attachmentInjectionHtml()
html.prepend(link);
if (isFancyTheme) {
html.prepend(QStringLiteral("<div style=\"float:left;\">%1&nbsp;</div>").arg(i18n(
html.prepend(QLatin1String("<div style=\"float:left;\">%1&nbsp;</div>").arg(i18n(
"Attachments:")));
}
return html;
......
......@@ -684,7 +684,7 @@ QString NodeHelper::persistentIndex(const KMime::Content *node) const
for (int i = 0; i < extraNodes.size(); ++i) {
KMime::Content *const extraNode = extraNodes[i];
if (topLevel == extraNode) {
indexStr.prepend(QStringLiteral("e%1:").arg(i));
indexStr.prepend(QLatin1String("e%1:").arg(i));
const QString parentIndex = persistentIndex(it.key());
if (!parentIndex.isEmpty()) {
indexStr = QStringLiteral("%1:%2").arg(parentIndex, indexStr);
......
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