diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-05-02 16:32:26 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-04 12:45:47 +0200 |
commit | 712ca9d95a92d62eda809c959998313413516aa9 (patch) | |
tree | 369870135d815d3db5b5942e32a4604b64bde724 /tests/auto/other | |
parent | 2376a5c4e0ea930d43d9377f4e93738a20659097 (diff) |
Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtCore]
This operation should be a no-op anyway, since at this point in time,
the fromAscii and toAscii functions simply call their fromLatin1 and
toLatin1 counterparts.
Task-number: QTBUG-21872
Change-Id: I38f97ad379deafebef02c75d611343ca15640c8a
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Diffstat (limited to 'tests/auto/other')
-rw-r--r-- | tests/auto/other/collections/tst_collections.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/other/collections/tst_collections.cpp b/tests/auto/other/collections/tst_collections.cpp index 2d5d6a6553..472dd5020e 100644 --- a/tests/auto/other/collections/tst_collections.cpp +++ b/tests/auto/other/collections/tst_collections.cpp @@ -2124,14 +2124,14 @@ void tst_Collections::qstring() QVERIFY(s.toLocal8Bit().isEmpty()); s = "first-ascii"; - QVERIFY(s.toAscii() == "first-ascii"); + QVERIFY(s.toLatin1() == "first-ascii"); s = "second-ascii"; - QVERIFY(s.toAscii() == "second-ascii"); + QVERIFY(s.toLatin1() == "second-ascii"); s.clear(); QVERIFY(s.isNull()); - QVERIFY(s.toAscii().size() == 0); - QVERIFY(s.toAscii().isEmpty()); - QVERIFY(s.toAscii().isNull()); + QVERIFY(s.toLatin1().size() == 0); + QVERIFY(s.toLatin1().isEmpty()); + QVERIFY(s.toLatin1().isNull()); s = "ascii"; s += QChar((uchar) 0xb0); |