summaryrefslogtreecommitdiffstats
path: root/examples/nfc/ndefeditor/mimeimagerecordeditor.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-05-14 14:10:33 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-15 10:10:05 +0200
commit10cd7743aa8c30fc3a5f8485ba4c4aad6bb5365e (patch)
tree4498b82fc104cf4e675241412d147de61147ed55 /examples/nfc/ndefeditor/mimeimagerecordeditor.cpp
parentde750dc7971b3dfda350b5602501b6215ef3da8d (diff)
Utilize QStringLiteral where possible
The only exception are generated files and cases where QLatin1String based overloads are used (e.g. during QString comparisons) Change-Id: I6f36789fb8acb3b30c1dc1f8a920b118a979d74f Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'examples/nfc/ndefeditor/mimeimagerecordeditor.cpp')
-rw-r--r--examples/nfc/ndefeditor/mimeimagerecordeditor.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/nfc/ndefeditor/mimeimagerecordeditor.cpp b/examples/nfc/ndefeditor/mimeimagerecordeditor.cpp
index adc33ef0..1b84ab4d 100644
--- a/examples/nfc/ndefeditor/mimeimagerecordeditor.cpp
+++ b/examples/nfc/ndefeditor/mimeimagerecordeditor.cpp
@@ -48,29 +48,29 @@
static QString imageFormatToMimeType(const QByteArray &format)
{
if (format == "bmp")
- return QLatin1String("image/bmp");
+ return QStringLiteral("image/bmp");
else if (format == "gif")
- return QLatin1String("image/gif");
+ return QStringLiteral("image/gif");
else if (format == "jpg" || format == "jpeg")
- return QLatin1String("image/jpeg");
+ return QStringLiteral("image/jpeg");
else if (format == "mng")
- return QLatin1String("video/x-mng");
+ return QStringLiteral("video/x-mng");
else if (format == "png")
- return QLatin1String("image/png");
+ return QStringLiteral("image/png");
else if (format == "pbm")
- return QLatin1String("image/x-portable-bitmap");
+ return QStringLiteral("image/x-portable-bitmap");
else if (format == "pgm")
- return QLatin1String("image/x-portable-graymap");
+ return QStringLiteral("image/x-portable-graymap");
else if (format == "ppm")
- return QLatin1String("image/x-portable-pixmap");
+ return QStringLiteral("image/x-portable-pixmap");
else if (format == "tiff")
- return QLatin1String("image/tiff");
+ return QStringLiteral("image/tiff");
else if (format == "xbm")
- return QLatin1String("image/x-xbitmap");
+ return QStringLiteral("image/x-xbitmap");
else if (format == "xpm")
- return QLatin1String("image/x-xpixmap");
+ return QStringLiteral("image/x-xpixmap");
else if (format == "svg")
- return QLatin1String("image/svg+xml");
+ return QStringLiteral("image/svg+xml");
else
return QString();
}