summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qnativesocketengine_unix.cpp
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2025-03-17 16:20:07 +0100
committerMarc Mutz <[email protected]>2025-03-17 22:43:24 +0100
commit26ba78900d6dae5be24b83004f0f91db74ac95e4 (patch)
treed51d9203f0f8edee9b6679500df4b84e2f09307a /src/network/socket/qnativesocketengine_unix.cpp
parentd038f3d6924c785aca4973c0b4ac93b831670996 (diff)
QSqlQueryModel: restore RVO in data()
The return of a default-constructed QVariant 'v' from three branches invites NRVO, but most compilers won't let it kick in, because there are two return statements that don't return 'v'. Return an rvalue from each branch, so RVO is guaranteed (since C++17) to kick in. Amends the start of the public history. Picking back all the way, since it's risk-free. Pick-to: 6.9 6.8 6.5 5.15 Change-Id: I495885bee3ebba63c9e52640903c792011c1dee2 Reviewed-by: Christian Ehrlicher <[email protected]>
Diffstat (limited to 'src/network/socket/qnativesocketengine_unix.cpp')
0 files changed, 0 insertions, 0 deletions