diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2025-08-11 10:18:54 +0200 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2025-08-12 12:27:32 +0200 |
| commit | 6a03789e5c9982504773e799e6e954d6d639e6aa (patch) | |
| tree | afe7b6a842780b8f82b92aa435208a0a316e02a9 /src/qml/jsruntime/qv4jsonobject.cpp | |
| parent | 4dcf1103a8210d3d3cc126e3535e7de634045914 (diff) | |
QtQml: std::move strings rather than copying them
Coverity-Id: 486699
Coverity-Id: 486697
Coverity-Id: 486715
Change-Id: Icdd15ff578f8be55fe9db3ffc38e893f667edc40
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4jsonobject.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4jsonobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4jsonobject.cpp b/src/qml/jsruntime/qv4jsonobject.cpp index 2909d5cd54..5f00062ad6 100644 --- a/src/qml/jsruntime/qv4jsonobject.cpp +++ b/src/qml/jsruntime/qv4jsonobject.cpp @@ -820,7 +820,7 @@ QString Stringify::JO(Object *o) + stepback + u'}'; } - indent = stepback; + indent = std::move(stepback); stack.pop(); return result; } @@ -864,7 +864,7 @@ QString Stringify::JA(Object *a) result = QLatin1String("[\n") + indent + partial.join(separator) + u'\n' + stepback + u']'; } - indent = stepback; + indent = std::move(stepback); stack.pop(); return result; } |
