diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2024-02-07 11:56:38 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2024-02-17 17:20:52 +0100 |
| commit | 1461fbb5d183e8894ad1a097c147dce21656bd01 (patch) | |
| tree | fb28d224a8eb050435c0ec1e40baf90142968f3a /src/corelib/kernel/qtimer.cpp | |
| parent | 6b59ff573028eabba42ca63ce50ce05fa160ecaf (diff) | |
QLoggingRegistry: cut out the QMap middle-man
In Qt 6, QMap is just a shared pointer to a std::map.
QLoggingRegistry::qtCategoryEnvironmentOverrides 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.
This saves more than 1.1KiB in TEXT size on optimized AMD64 GCC 11
C++20 Linux builds.
Change-Id: Id72b2432ed41a97700cc2d9ecafa902b919efe84
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qtimer.cpp')
0 files changed, 0 insertions, 0 deletions
