summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Lemanissier <eric.lemanissier@gmail.com>2017-06-16 16:20:30 +0200
committerEric Lemanissier <eric.lemanissier@gmail.com>2017-06-16 14:38:15 +0000
commitcd2e41ee7935c515addfd3128824ffd0a53aaf5a (patch)
tree09322d253b49d20607d8524bb5d98b913026ed4d
parent0544c2b41fdb0a7d7efc9db701bac561e0edf1f3 (diff)
downloadqtactiveqt-cd2e41ee7935c515addfd3128824ffd0a53aaf5a.tar.gz
dumpcpp: make dump QT_NO_CAST_FROM_ASCII proof
Change-Id: I4873179ec8ff42173009973ac96dea3a2bbdb014 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r--tools/dumpcpp/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/dumpcpp/main.cpp b/tools/dumpcpp/main.cpp
index 97915c1..1f0cca8 100644
--- a/tools/dumpcpp/main.cpp
+++ b/tools/dumpcpp/main.cpp
@@ -196,11 +196,11 @@ void generateClassDecl(QTextStream &out, const QString &controlID, const QMetaOb
out << " internalRelease();" << endl;
else if (category & Licensed) {
out << " if (licenseKey.isEmpty())" << endl;
- out << " setControl(\"" << controlID << "\");" << endl;
+ out << " setControl(QStringLiteral(\"" << controlID << "\"));" << endl;
out << " else" << endl;
- out << " setControl(\"" << controlID << ":\" + licenseKey);" << endl;
+ out << " setControl(QStringLiteral(\"" << controlID << ":\" + licenseKey));" << endl;
} else {
- out << " setControl(\"" << controlID << "\");" << endl;
+ out << " setControl(QStringLiteral(\"" << controlID << "\"));" << endl;
}
out << " }" << endl;
out << endl;