qt5base-lts/tests/auto/corelib/tools/qchar
Marc Mutz cb93117d06 QChar: prepare relational operators for constexpr'ification
Make sure the relational operators are in a constexpr'able form
by removing the use of the const/non-const-overloaded unicode()
function, which in the relational operators is resolved to the
non-const version, which isn't constexpr'able.

Replaced with direct member access for op== and op< (required
making them friends) and reformulating the other operators in
terms of these two.

Since I managed to introduce a bug while doing this change,
add a simple test for QChar operators, too.

Change-Id: I69f3da849e71abc2a17152f797694950914adebc
Reviewed-by: Alex Trotsenko <alex1973tr@gmail.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2014-12-10 01:26:51 +01:00
..
data Update UCD source files up to Unicode 6.3.0 2014-01-14 15:38:43 +01:00
.gitignore Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
qchar.pro Fix qchar testdata installation. 2014-03-14 18:19:00 +01:00
tst_qchar.cpp QChar: prepare relational operators for constexpr'ification 2014-12-10 01:26:51 +01:00