aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4propertykey.cpp
diff options
context:
space:
mode:
authorAnton Kudryavtsev <[email protected]>2023-09-13 15:59:08 +0300
committerAnton Kudryavtsev <[email protected]>2023-09-15 13:04:18 +0300
commitee5291afc3ac64faea06575bb7101411ff45ea3b (patch)
treeefd4dbf983e3da27c68bb7319a16d4664a7da6b3 /src/qml/jsruntime/qv4propertykey.cpp
parentdf66aa688c471980ab664401ecf387ada9b61e3d (diff)
qml: use QSL less
prefer _L1 where it's possible Change-Id: I3f3e1ccc985f6eb93ff2150825cae891add5dba1 Reviewed-by: Ulf Hermann <[email protected]> Reviewed-by: Shawn Rutledge <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4propertykey.cpp')
-rw-r--r--src/qml/jsruntime/qv4propertykey.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4propertykey.cpp b/src/qml/jsruntime/qv4propertykey.cpp
index ac03e01a73..d93ff8e794 100644
--- a/src/qml/jsruntime/qv4propertykey.cpp
+++ b/src/qml/jsruntime/qv4propertykey.cpp
@@ -8,6 +8,8 @@
#include <qv4engine_p.h>
#include <qv4scopedvalue_p.h>
+using namespace Qt::Literals::StringLiterals;
+
QV4::Heap::StringOrSymbol *QV4::PropertyKey::toStringOrSymbol(QV4::ExecutionEngine *e)
{
if (isArrayIndex())
@@ -56,9 +58,9 @@ QV4::Heap::String *QV4::PropertyKey::asFunctionName(ExecutionEngine *engine, Fun
{
QString n;
if (prefix == Getter)
- n = QStringLiteral("get ");
+ n += "get "_L1;
else if (prefix == Setter)
- n = QStringLiteral("set ");
+ n += "set "_L1;
if (isArrayIndex())
n += QString::number(asArrayIndex());
else {