qt5base-lts/tests/auto/corelib/text/qstring
Marc Mutz 90f864a4c5 QString: remove op+=(char) and op+=(QChar::SpecialCharacter)
The former messes in bad ways with the overload set (it, fatally,
attracts char16_t, e.g.). The latter was probably added in response to
ambiguities between (char) and (QChar). While it's harmless now,
remove it, since it no longer pulls its weight.

The no-ascii warning is now coming from QChar(char), so the protection
isn't lost.

[ChangeLog][QtCore][QString] The += operators taking char and
QChar::SpecialCharacter have been removed as they cause adding a
char16_t to QString to call the char overload, losing information. The
append() function was not affected.

Change-Id: I57116314bcc71c0d9476159513c0c10048239db3
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2020-05-13 14:38:48 +02:00
..
.gitignore
CMakeLists.txt Port qtbase/tests/auto/corelib/text tests to CMake 2020-04-27 14:34:51 +02:00
double_data.h
qstring.pro Don't try to define QT_NO_CAST_TO_ASCII when the test undefines it 2019-10-25 11:41:44 +02:00
tst_qstring_mac.mm
tst_qstring.cpp QString: remove op+=(char) and op+=(QChar::SpecialCharacter) 2020-05-13 14:38:48 +02:00