From e563ca1a7512a48e4d3e205ac8807d61c070d3f7 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 [platformsupport] 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: Ie1a4e5ceca21c31e7357f28b90abc9129b122104 Reviewed-by: Eskil Abrahamsen Blomfeldt Reviewed-by: Samuel Rødal --- examples/desktop/screenshot/screenshot.cpp | 2 +- examples/dialogs/classwizard/classwizard.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/desktop/screenshot/screenshot.cpp b/examples/desktop/screenshot/screenshot.cpp index 66467d439f..c9310c9e2f 100644 --- a/examples/desktop/screenshot/screenshot.cpp +++ b/examples/desktop/screenshot/screenshot.cpp @@ -102,7 +102,7 @@ void Screenshot::saveScreenshot() .arg(format.toUpper()) .arg(format)); if (!fileName.isEmpty()) - originalPixmap.save(fileName, format.toAscii().constData()); + originalPixmap.save(fileName, format.toLatin1().constData()); } //! [3] diff --git a/examples/dialogs/classwizard/classwizard.cpp b/examples/dialogs/classwizard/classwizard.cpp index 211a76488d..eeb1fab55b 100644 --- a/examples/dialogs/classwizard/classwizard.cpp +++ b/examples/dialogs/classwizard/classwizard.cpp @@ -79,7 +79,7 @@ void ClassWizard::accept() if (field("comment").toBool()) { block += "/*\n"; - block += " " + header.toAscii() + "\n"; + block += " " + header.toLatin1() + "\n"; block += "*/\n"; block += "\n"; } @@ -141,11 +141,11 @@ void ClassWizard::accept() if (field("comment").toBool()) { block += "/*\n"; - block += " " + implementation.toAscii() + "\n"; + block += " " + implementation.toLatin1() + "\n"; block += "*/\n"; block += "\n"; } - block += "#include \"" + header.toAscii() + "\"\n"; + block += "#include \"" + header.toLatin1() + "\"\n"; block += "\n"; if (field("qobjectCtor").toBool()) { -- cgit v1.2.3