aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/jsextensions/fileinfoextension.cpp
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2019-02-19 22:16:04 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2019-02-25 15:58:40 +0000
commit0876dc4d6abb147ccdcc190adfad01c704a73e61 (patch)
treee8a1d558827e2a9e4092600cbe1a2029895d9f99 /src/lib/corelib/jsextensions/fileinfoextension.cpp
parente160b26d8c7476c63f6220ac69d1d6405e8ce3aa (diff)
Use QStringLiteral more where it is possible
Change-Id: I7419cc3fbc1e8776de3943852dcedab4c95d1c32 Reviewed-by: Anton Kudryavtsev <antkudr@mail.ru> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/jsextensions/fileinfoextension.cpp')
-rw-r--r--src/lib/corelib/jsextensions/fileinfoextension.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/corelib/jsextensions/fileinfoextension.cpp b/src/lib/corelib/jsextensions/fileinfoextension.cpp
index 5b30ec35f..0f2570ed0 100644
--- a/src/lib/corelib/jsextensions/fileinfoextension.cpp
+++ b/src/lib/corelib/jsextensions/fileinfoextension.cpp
@@ -288,33 +288,33 @@ void initializeJsExtensionFileInfo(QScriptValue extensionObject)
engine->newFunction(FileInfoExtension::js_fileName));
fileInfoObj.setProperty(StringConstants::baseNameProperty(),
engine->newFunction(FileInfoExtension::js_baseName));
- fileInfoObj.setProperty(QLatin1String("suffix"),
+ fileInfoObj.setProperty(QStringLiteral("suffix"),
engine->newFunction(FileInfoExtension::js_suffix));
- fileInfoObj.setProperty(QLatin1String("completeSuffix"),
+ fileInfoObj.setProperty(QStringLiteral("completeSuffix"),
engine->newFunction(FileInfoExtension::js_completeSuffix));
- fileInfoObj.setProperty(QLatin1String("canonicalPath"),
+ fileInfoObj.setProperty(QStringLiteral("canonicalPath"),
engine->newFunction(FileInfoExtension::js_canonicalPath));
- fileInfoObj.setProperty(QLatin1String("cleanPath"),
+ fileInfoObj.setProperty(QStringLiteral("cleanPath"),
engine->newFunction(FileInfoExtension::js_cleanPath));
fileInfoObj.setProperty(StringConstants::completeBaseNameProperty(),
engine->newFunction(FileInfoExtension::js_completeBaseName));
- fileInfoObj.setProperty(QLatin1String("relativePath"),
+ fileInfoObj.setProperty(QStringLiteral("relativePath"),
engine->newFunction(FileInfoExtension::js_relativePath));
- fileInfoObj.setProperty(QLatin1String("resolvePath"),
+ fileInfoObj.setProperty(QStringLiteral("resolvePath"),
engine->newFunction(FileInfoExtension::js_resolvePath));
- fileInfoObj.setProperty(QLatin1String("isAbsolutePath"),
+ fileInfoObj.setProperty(QStringLiteral("isAbsolutePath"),
engine->newFunction(FileInfoExtension::js_isAbsolutePath));
- fileInfoObj.setProperty(QLatin1String("toWindowsSeparators"),
+ fileInfoObj.setProperty(QStringLiteral("toWindowsSeparators"),
engine->newFunction(FileInfoExtension::js_toWindowsSeparators));
- fileInfoObj.setProperty(QLatin1String("fromWindowsSeparators"),
+ fileInfoObj.setProperty(QStringLiteral("fromWindowsSeparators"),
engine->newFunction(FileInfoExtension::js_fromWindowsSeparators));
- fileInfoObj.setProperty(QLatin1String("toNativeSeparators"),
+ fileInfoObj.setProperty(QStringLiteral("toNativeSeparators"),
engine->newFunction(FileInfoExtension::js_toNativeSeparators));
- fileInfoObj.setProperty(QLatin1String("fromNativeSeparators"),
+ fileInfoObj.setProperty(QStringLiteral("fromNativeSeparators"),
engine->newFunction(FileInfoExtension::js_fromNativeSeparators));
- fileInfoObj.setProperty(QLatin1String("joinPaths"),
+ fileInfoObj.setProperty(QStringLiteral("joinPaths"),
engine->newFunction(FileInfoExtension::js_joinPaths));
- extensionObject.setProperty(QLatin1String("FileInfo"), fileInfoObj);
+ extensionObject.setProperty(QStringLiteral("FileInfo"), fileInfoObj);
}
Q_DECLARE_METATYPE(qbs::Internal::FileInfoExtension *)