diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2014-10-08 11:36:56 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-02-02 16:43:07 +0000 |
commit | a776e4cf78d55ccd2d05911b2b466148edeb8015 (patch) | |
tree | cbdc9e8fa9625c00fc8c6084fece7670b72ee17d /mkspecs/unsupported | |
parent | ee973083cf52882b68ab0e4c067f637cef1dda3e (diff) |
uic: don't use QStringLiteral in comparisons
(this is committing the new output of generate_ui from qttools)
For QLatin1String, operator== is overloaded, even for QStringRef,
so comparing to a latin-1 (C) string literal is efficient,
since strlen() is comparatively fast.
OTOH, QStringLiteral, when not using RVO, litters the code with
QString dtor calls, which are not inline. Worse, absent lambdas,
it even allocates memory.
So, just compare using QLatin1String instead.
Change-Id: I5035d259085c21689ab0f62fd49819ab5223ffe8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'mkspecs/unsupported')
0 files changed, 0 insertions, 0 deletions