summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/cmake-macros/examples.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2025-08-18 15:03:38 +0200
committerMarc Mutz <marc.mutz@qt.io>2025-08-19 07:23:10 +0200
commitc1a4f722eca79a1811304a47349d332d57a86704 (patch)
treeb2f9c3f70a8804e5763b75ab8819192784a1843b /src/widgets/doc/snippets/cmake-macros/examples.cpp
parente1ecbff3d36b666488f6f2eec299549f31ee078d (diff)
QString: further optimize the invalid regex warning
Error handling code has no business bloating Qt executable code size, so take two more steps to reduce its impact, on top of the locking it away in a Q_DECL_COLD_FUNCTION: First, split the 'where' argument into 'class' and 'method', in order to facilitate the reuse of the class strings across users. Second, move the QRegularExpression::pattern() call into the warning function, to centralize the temporary QString handling code. Saves half a KiB in text size on optimized Clang 19 Linux AMD64 C++23 builds. Pick-to: 6.10 6.9 6.8 Change-Id: I7fe23bdafc9f63d0d43b801e704866be9961648c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/widgets/doc/snippets/cmake-macros/examples.cpp')
0 files changed, 0 insertions, 0 deletions