qt5base-lts/util
Anton Kudryavtsev 0f27d11285 Don't use QStringLiteral in comparisons
For QLatin1String, operator== is overloaded, 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: I761b2b26ab5b416bc695f524a9ee607dacf0a7b2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2016-01-28 18:00:47 +00:00
..
accessibilityinspector Update copyright headers 2015-02-11 06:49:51 +00:00
aglfn Update copyright headers 2015-02-11 06:49:51 +00:00
corelib/qurl-generateTLDs Reflect in the docs that the TLD list os now hosted at publicsuffix.org 2015-02-12 20:02:21 +00:00
glgen Don't use QStringLiteral in comparisons 2016-01-28 18:00:47 +00:00
harfbuzz Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
integrity Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
lexgen Update copyright headers 2015-02-11 06:49:51 +00:00
local_database Re-generate the time zones database from CLDR v.27 2015-03-27 16:40:28 +00:00
plugintest Update copyright headers 2015-02-11 06:49:51 +00:00
unicode Move CasexTraits from qstring.cpp to qunicodetables_p.h 2015-11-16 14:34:04 +00:00
xkbdatagen Update copyright headers 2015-02-11 06:49:51 +00:00