summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/kernel/qtranslator/tst_qtranslator.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2019-12-26 19:32:00 +0100
committerMarc Mutz <marc.mutz@kdab.com>2020-02-10 14:09:12 +0000
commitb1089787d1dd9dd2b6b09a74923ea5f573d04bb2 (patch)
treef4cbe197b94a00ce325f1b054885678d238459aa /tests/auto/corelib/kernel/qtranslator/tst_qtranslator.cpp
parent4777c6d76bbcee4a45d35e3f66ef099b162698f9 (diff)
QMimeData: Extract Method QMimeDataPrivate::find()
Centralize the search for the QMimeDataStruct with a given format in find() (overloaded on const and non-const, but implemented only once), and use it in the three other functions that performed lookup before. In setData(), optimize the case where data is overwritten. Use a std::vector to not have to think about hidden detaches when implementing the const find() in terms of the non-const one. Change-Id: I874e5c6ef9c97d98b42f29faccbc3043e8c6a855 Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'tests/auto/corelib/kernel/qtranslator/tst_qtranslator.cpp')
0 files changed, 0 insertions, 0 deletions