diff options
| author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-03-21 10:21:18 +0100 |
|---|---|---|
| committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-04-29 09:47:43 +0200 |
| commit | 2c9c1590e6c9dc59bd786f4b41af32f1994bed2d (patch) | |
| tree | 7cc1302426732093f1c88c1d7621a95854ade0e2 /src/qml/compiler/qv4codegen.cpp | |
| parent | ecc87ea07723998dcfa947353e4259ec8d057035 (diff) | |
Replace uses of deprecated _qs with _s/QStringLiteral
Task-number: QTBUG-101408
Change-Id: Ic925751b73f52d8fa5add5cacc52d6dd6ea2dc27
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
| -rw-r--r-- | src/qml/compiler/qv4codegen.cpp | 4 |
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; } |
