diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-04-28 14:14:51 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-05-01 18:52:15 +0200 |
commit | 52053a8994fa2627eff939fa081f1af3b3b8bf16 (patch) | |
tree | ce9049366042437feffeca4fdeb334480ffef5c4 /tests/auto/corelib/text/qstring | |
parent | 55dc178271a64f6df317cb3954447352d87b48c1 (diff) |
Remove useless code
We don't rely on a latin1 locale anymore for the test,
and the other code was not doing anything.
Change-Id: I08bc08d200c9e037884d8b680dfbb24c129f3d2e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'tests/auto/corelib/text/qstring')
-rw-r--r-- | tests/auto/corelib/text/qstring/tst_qstring.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/auto/corelib/text/qstring/tst_qstring.cpp b/tests/auto/corelib/text/qstring/tst_qstring.cpp index 088225431c..fed832f160 100644 --- a/tests/auto/corelib/text/qstring/tst_qstring.cpp +++ b/tests/auto/corelib/text/qstring/tst_qstring.cpp @@ -685,7 +685,6 @@ typedef QVector<int> IntList; tst_QString::tst_QString() { - QTextCodec::setCodecForLocale(QTextCodec::codecForName("ISO 8859-1")); } void tst_QString::remove_uint_uint_data() @@ -1061,13 +1060,6 @@ void tst_QString::acc_01() a = (const char*)0; QVERIFY(a.isNull()); QVERIFY(*a.toLatin1().constData() == '\0'); - { - QFile f("COMPARE.txt"); - f.open(QIODevice::ReadOnly); - QTextStream ts( &f ); - ts.setCodec(QTextCodec::codecForName("UTF-16")); - ts << "Abc"; - } } QT_WARNING_PUSH |