diff options
author | Marc Mutz <[email protected]> | 2025-10-14 10:36:25 +0200 |
---|---|---|
committer | Marc Mutz <[email protected]> | 2025-10-15 16:51:11 +0200 |
commit | 956f7a94566d3ddb63d79d49ad047ec1a6ab03cc (patch) | |
tree | 834edaf3d6089456fbe0e5b0cb06fa23c33d4199 /src/dbus/qdbusconnection.cpp | |
parent | 9b4c15ef5ffa94829a0c690eba37472c6833600c (diff) |
Coverity complained that, since the ActionState struct contains a
QString, a copy is expensive while a move is possible.
Make it so.
To avoid explicit std::move() far away from the end of the scope
(which impairs readability), use C++17 if-with-initializer to reduce
the scope of the newX ActionState objects. This is a drive-by, since
to move from them, we need to de-const the variables, anyway.
Amends 31b0dadb0f371fc94652782c28024f135a0b6f4b.
Pick-to: 6.10 6.8
Coverity-Id: 896353
Coverity-Id: 896351
Task-number: QTBUG-138567
Change-Id: Id365d9bd91773452d16634a3b862f3d23ad650b9
Reviewed-by: Edward Welbourne <[email protected]>
Reviewed-by: Richard Moe Gustavsen <[email protected]>
Reviewed-by: Ali Kianian <[email protected]>
Diffstat (limited to 'src/dbus/qdbusconnection.cpp')
0 files changed, 0 insertions, 0 deletions