summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRagnar Thomsen <[email protected]>2015-09-10 14:09:45 +0200
committerRagnar Thomsen <[email protected]>2015-09-10 14:09:45 +0200
commitb2fc4f68c32d6404b3a639d40642da62f1e6cd82 (patch)
treead103f4ef516ca0191fd7cf9a2d597f59f661ddf
parent5e5fde4270627626a47cd12c23a5db205123f758 (diff)
Use QStringLiteral()
Use QStringLiteral() to comply with -DQT_NO_URL_CAST_FROM_STRING switch.
-rw-r--r--kerfuffle/archive_kerfuffle.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kerfuffle/archive_kerfuffle.cpp b/kerfuffle/archive_kerfuffle.cpp
index 2314896..9b10daf 100644
--- a/kerfuffle/archive_kerfuffle.cpp
+++ b/kerfuffle/archive_kerfuffle.cpp
@@ -63,12 +63,12 @@ static QString determineMimeType(const QString& filename)
// Compressed tar-archives are detected as single compressed files when
// detecting by content. The following code prevents tar.gz, tar.bz2 and
// tar.xz files being opened using the singlefile plugin.
- if ((mimeFromExtension == db.mimeTypeForName("application/x-compressed-tar") &&
- mimeFromContent == db.mimeTypeForName("application/gzip")) ||
- (mimeFromExtension == db.mimeTypeForName("application/x-bzip-compressed-tar") &&
- mimeFromContent == db.mimeTypeForName("application/x-bzip")) ||
- (mimeFromExtension == db.mimeTypeForName("application/x-xz-compressed-tar") &&
- mimeFromContent == db.mimeTypeForName("application/x-xz"))) {
+ if ((mimeFromExtension == db.mimeTypeForName(QStringLiteral("application/x-compressed-tar")) &&
+ mimeFromContent == db.mimeTypeForName(QStringLiteral("application/gzip"))) ||
+ (mimeFromExtension == db.mimeTypeForName(QStringLiteral("application/x-bzip-compressed-tar")) &&
+ mimeFromContent == db.mimeTypeForName(QStringLiteral("application/x-bzip"))) ||
+ (mimeFromExtension == db.mimeTypeForName(QStringLiteral("application/x-xz-compressed-tar")) &&
+ mimeFromContent == db.mimeTypeForName(QStringLiteral("application/x-xz")))) {
return mimeFromExtension.name();
}