aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/qmlcompiler/qqmljscodegenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlcompiler/qqmljscodegenerator.cpp b/src/qmlcompiler/qqmljscodegenerator.cpp
index 4810fe6a74..58453b2f60 100644
--- a/src/qmlcompiler/qqmljscodegenerator.cpp
+++ b/src/qmlcompiler/qqmljscodegenerator.cpp
@@ -1906,7 +1906,7 @@ QString QQmlJSCodeGenerator::initAndCall(
QString argumentPreparation;
for (int i = 0; i < argc; ++i) {
if (isRegisterAffectedBySideEffects(argv + i))
- reject(u"calling method with argument affected by side effects"_s);
+ REJECT<QString>(u"calling method with argument affected by side effects"_s);
const QQmlJSRegisterContent content = registerType(argv + i);
const QQmlJSRegisterContent read = m_state.readRegister(argv + i);
if (read.contains(content.containedType())) {