diff --git a/tools/dumpcpp/main.cpp b/tools/dumpcpp/main.cpp
index 8a37f3300399611213c1f7068a07ecf3f05c60e0..60a1d56a7d7d0fe5abc60687cf119417bfb17bc0 100644
--- a/tools/dumpcpp/main.cpp
+++ b/tools/dumpcpp/main.cpp
@@ -198,7 +198,7 @@ void generateClassDecl(QTextStream &out, const QString &controlID, const QMetaOb
             out << "        if (licenseKey.isEmpty())" << endl;
             out << "            setControl(QStringLiteral(\"" << controlID << "\"));" << endl;
             out << "        else" << endl;
-            out << "            setControl(QStringLiteral(\"" << controlID << ":\" + licenseKey));" << endl;
+            out << "            setControl(QStringLiteral(\"" << controlID << ":\") + licenseKey);" << endl;
         } else {
             out << "        setControl(QStringLiteral(\"" << controlID << "\"));" << endl;
         }