diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2025-08-02 17:57:46 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2025-08-03 00:31:46 +0200 |
| commit | e1ecc3ae11e01f6a6601b921efb588e13b8baf3b (patch) | |
| tree | 428dce1406d64848e99c7f502549f053e4dc995b /src/corelib/thread/qthreadpool.cpp | |
| parent | fe278b9551db6ef18a88f08822a43d2e2d81374d (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
