aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
-rw-r--r--src/qml/compiler/qv4codegen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp
index 20685e42f1..9930f3e2a8 100644
--- a/src/qml/compiler/qv4codegen.cpp
+++ b/src/qml/compiler/qv4codegen.cpp
@@ -68,6 +68,8 @@ static const bool disable_lookups = false;
QT_BEGIN_NAMESPACE
+using namespace Qt::StringLiterals;
+
Q_LOGGING_CATEGORY(lcQmlCompiler, "qt.qml.compiler");
using namespace QV4;
@@ -3187,7 +3189,7 @@ bool Codegen::visit(YieldExpression *ast)
Q_ASSERT(innerMostCurentFunctionContext); // yield outside function would have been rejected by parser
if (!innerMostCurentFunctionContext->isGenerator) {
- throwSyntaxError(ast->firstSourceLocation(), u"Yield is only valid in generator functions"_qs);
+ throwSyntaxError(ast->firstSourceLocation(), u"Yield is only valid in generator functions"_s);
return false;
}