diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-04-06 21:07:02 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-04-07 08:32:39 +0000 |
commit | 95db1f6caef29553ca7c9cf33c8009b9cc95e302 (patch) | |
tree | 61634925da45005fccd38f2208a5f0b66a25188f /tests/auto/corelib/tools/qstringapisymmetry | |
parent | 95263dbf7a7fe6ae72abc59b7a576ab66b886238 (diff) |
Optimize comparisons of QChar with QLatin1String, QString, and QStringRef
Instead of blindly calling the general compare function with a 1-char
string, compare size() and front() to 1 and the QChar, respectively.
Change-Id: I6c83c0772d16294ce6dd7eb058513d717208d6cd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/corelib/tools/qstringapisymmetry')
0 files changed, 0 insertions, 0 deletions