summaryrefslogtreecommitdiffstats
path: root/src/opengl/qopenglframebufferobject.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2024-02-07 11:56:38 +0100
committerMarc Mutz <marc.mutz@qt.io>2024-02-09 11:39:27 +0000
commit6675e8c942c2f9797d66269368c729c5556528c2 (patch)
tree3f4218eaf4e6fad02b7461804068a966e421cf61 /src/opengl/qopenglframebufferobject.cpp
parente3cc87c5f49d9bf824d6e667bf3b206470cf3b2d (diff)
QFactoryLoader: cut out the QMap middle-man
In Qt 6, QMap is just a shared pointer to a std::map. QFactoryLoaderPrivate::keyMap is never copied, though, so the implicit sharing that QMap adds on top of std::map is useless. Use the underlying std::map directly. Yes, the std::map API is a bit raw around the edges (std::pair value_type), but we're professionals here. Saves more than 1.7KiB in TEXT size on optimized AMD64 GCC 11 C++20 Linux builds. As a drive-by, fix the double lookup in updateSinglePath(). Change-Id: I0d59f43d490fb947f653fe8dc903cf7eb9af700a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/opengl/qopenglframebufferobject.cpp')
0 files changed, 0 insertions, 0 deletions