Remove meaningless QT_NO_UNICODE_LITERAL check in QString literal tests
This check doesn't really do anything useful anymore: QStringLiteral
is used in Qt without any extra QT_NO_UNICODE_LITERAL #if-ery
Additionally, clean the related (and outdated) comment in
{QString, QByteArray}::literals()
Change-Id: I65b1eac33c5470508997be24f9ba6cf56d8578ea
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
bb10
parent
b1377ed02d
commit
c34f51d58c
|
|
@ -1968,7 +1968,6 @@ void tst_QByteArray::movablity()
|
|||
QVERIFY(true);
|
||||
}
|
||||
|
||||
// Only tested on c++0x compliant compiler or gcc
|
||||
void tst_QByteArray::literals()
|
||||
{
|
||||
QByteArray str(QByteArrayLiteral("abcd"));
|
||||
|
|
|
|||
|
|
@ -566,9 +566,7 @@ private slots:
|
|||
#if QT_CONFIG(icu)
|
||||
void toUpperLower_icu();
|
||||
#endif
|
||||
#if !defined(QT_NO_UNICODE_LITERAL)
|
||||
void literals();
|
||||
#endif
|
||||
void userDefinedLiterals();
|
||||
void eightBitLiterals_data();
|
||||
void eightBitLiterals();
|
||||
|
|
@ -6420,8 +6418,6 @@ void tst_QString::toUpperLower_icu()
|
|||
}
|
||||
#endif // icu
|
||||
|
||||
#if !defined(QT_NO_UNICODE_LITERAL)
|
||||
// Only tested on c++0x compliant compiler or gcc
|
||||
void tst_QString::literals()
|
||||
{
|
||||
QString str(QStringLiteral("abcd"));
|
||||
|
|
@ -6444,7 +6440,6 @@ void tst_QString::literals()
|
|||
QVERIFY(str2.data() != s);
|
||||
QVERIFY(str2.capacity() >= str2.length());
|
||||
}
|
||||
#endif
|
||||
|
||||
void tst_QString::userDefinedLiterals()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue