From 712ca9d95a92d62eda809c959998313413516aa9 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 2 May 2012 16:32:26 +0200 Subject: Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtCore] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Jędrzej Nowacki --- tests/auto/other/collections/tst_collections.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/auto/other/collections/tst_collections.cpp') 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); -- cgit v1.2.3