summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qbytearray.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2017-02-24 00:48:33 +0100
committerMarc Mutz <marc.mutz@kdab.com>2017-02-24 08:03:12 +0000
commit46d4dc8afb4c38165b3b050e44170d9f3b03a0f5 (patch)
treefddf1b8e229b10e6939163bee25c4b38bf1bfa7f /src/corelib/tools/qbytearray.h
parent1d0ee8954825a38b789351558a04cbde04fa0490 (diff)
QStyleSheetStyle: optimize away triple key lookup
Instead of contains()/value()/remove(), all of which perform a new lookup, and a new application of qHash(), get an iterator using find(), deref it, then pass it to erase(). Also add some optimistic std::move(). Change-Id: I27a623dcd974de9c67d11d030e9b98d7598efc93 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/tools/qbytearray.h')
0 files changed, 0 insertions, 0 deletions