aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/generators/generatordata.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/generators/generatordata.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/generators/generatordata.cpp')
-rw-r--r--src/lib/corelib/generators/generatordata.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/corelib/generators/generatordata.cpp b/src/lib/corelib/generators/generatordata.cpp
index 14f0a9f5f..7c6573484 100644
--- a/src/lib/corelib/generators/generatordata.cpp
+++ b/src/lib/corelib/generators/generatordata.cpp
@@ -48,7 +48,7 @@ namespace qbs {
QString GeneratableProductData::name() const
{
return uniqueValue<QString>(&ProductData::name,
- QLatin1String("Products with different names per configuration are not "
+ QStringLiteral("Products with different names per configuration are not "
"compatible with this generator. "
"Consider using the targetName property instead."));
}
@@ -56,34 +56,34 @@ QString GeneratableProductData::name() const
CodeLocation GeneratableProductData::location() const
{
return uniqueValue<CodeLocation>(&ProductData::location,
- QLatin1String("GeneratableProductData::location: internal bug; this should not happen."));
+ QStringLiteral("GeneratableProductData::location: internal bug; this should not happen."));
}
QStringList GeneratableProductData::dependencies() const
{
return uniqueValue<QStringList>(&ProductData::dependencies,
- QLatin1String("Products with different dependency lists per configuration are not "
+ QStringLiteral("Products with different dependency lists per configuration are not "
"compatible with this generator."));
}
QStringList GeneratableProductData::type() const
{
return uniqueValue<QStringList>(&ProductData::type,
- QLatin1String("Products with different types per configuration are not "
+ QStringLiteral("Products with different types per configuration are not "
"compatible with this generator."));
}
QString GeneratableProductData::buildDirectory() const
{
return uniqueValue<QString>(&ProductData::buildDirectory,
- QLatin1String("GeneratableProductData::buildDirectory: "
+ QStringLiteral("GeneratableProductData::buildDirectory: "
"internal bug; this should not happen."));
}
QString GeneratableProjectData::name() const
{
return uniqueValue<QString>(&ProjectData::name,
- QLatin1String("Projects with different names per configuration are not "
+ QStringLiteral("Projects with different names per configuration are not "
"compatible with this generator."));
}
@@ -96,7 +96,7 @@ CodeLocation GeneratableProjectData::location() const
CodeLocation oldLocation = location;
location = it.value().location();
if (oldLocation.isValid() && oldLocation != location)
- throw ErrorInfo(QLatin1String("Projects with different code locations "
+ throw ErrorInfo(QStringLiteral("Projects with different code locations "
"per configuration are not compatible with this "
"generator."));
}