summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qthreadpool.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2025-08-02 17:57:46 +0200
committerMarc Mutz <marc.mutz@qt.io>2025-08-03 00:31:46 +0200
commite1ecc3ae11e01f6a6601b921efb588e13b8baf3b (patch)
tree428dce1406d64848e99c7f502549f053e4dc995b /src/corelib/thread/qthreadpool.cpp
parentfe278b9551db6ef18a88f08822a43d2e2d81374d (diff)
QLocale: avoid QList self-assignment
QStringList::replaceInStrings() returns a reference to *this, so the re-assignment to *this is unnecessary. If one nevertheless does it, the RHS binds to the copy assignment operator, which, for QList, is copy-and-swap, so it's self-assignment-safe, but ups and downs the ref-count needlessly. Remove the assignment. Amends 4431ffa8b90f4d089f98544e8c2eeac6cfc7abb2. Pick-to: 6.10 6.9 6.8 Change-Id: I2e44b4ac302b1d9193d29e41bdbfc775d4682457 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/thread/qthreadpool.cpp')
0 files changed, 0 insertions, 0 deletions