summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-02-02 14:01:15 +0100
committerLaurent Montel <[email protected]>2018-02-02 14:01:24 +0100
commite1eaacb8d8a4edc95e69f03f0c424438d33024e7 (patch)
treef8b121ff69b0c40cd84db81da613207bf918e3b3
parent4e3ec0dc20d2de344a5f5f53e0f42f6df006948c (diff)
Use QLatin1String
-rw-r--r--messageviewer/src/header/headerstyle_util.cpp2
-rw-r--r--messageviewer/src/viewer/viewer_p.cpp2
-rw-r--r--mimetreeparser/src/nodehelper.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/messageviewer/src/header/headerstyle_util.cpp b/messageviewer/src/header/headerstyle_util.cpp
index 2332ec8..6dc330f 100644
--- a/messageviewer/src/header/headerstyle_util.cpp
+++ b/messageviewer/src/header/headerstyle_util.cpp
@@ -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();
diff --git a/messageviewer/src/viewer/viewer_p.cpp b/messageviewer/src/viewer/viewer_p.cpp
index 1dc2403..53e752c 100644
--- a/messageviewer/src/viewer/viewer_p.cpp
+++ b/messageviewer/src/viewer/viewer_p.cpp
@@ -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;
diff --git a/mimetreeparser/src/nodehelper.cpp b/mimetreeparser/src/nodehelper.cpp
index a6f459c..b56ca87 100644
--- a/mimetreeparser/src/nodehelper.cpp
+++ b/mimetreeparser/src/nodehelper.cpp
@@ -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);