From fba4d96750523dcb64855715a981755761110ea5 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 [other] 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: Ib1eaf42679ab5db4005192c3d00ba79e43edfcca Reviewed-by: Lars Knoll --- util/xkbdatagen/main.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'util') diff --git a/util/xkbdatagen/main.cpp b/util/xkbdatagen/main.cpp index 9919345d95..98994db74d 100644 --- a/util/xkbdatagen/main.cpp +++ b/util/xkbdatagen/main.cpp @@ -476,26 +476,26 @@ int main(int argc, char **argv) lang = "C"; printf(" // name = %s, description = %s\n" " { \"%s\", \"\", %s, QLocale::%s, QLocale::%s },\n", - l.name.toAscii().constData(), - l.description.toAscii().constData(), - l.name.toAscii().constData(), - mapDirection(lang).toAscii().constData(), - lang.toAscii().constData(), - country.toAscii().constData()); + l.name.toLatin1().constData(), + l.description.toLatin1().constData(), + l.name.toLatin1().constData(), + mapDirection(lang).toLatin1().constData(), + lang.toLatin1().constData(), + country.toLatin1().constData()); foreach (const QString &v, l.variants) { QString vlang = mapLanguage(l.name + ":" + v); if (vlang.isEmpty()) vlang = "C"; printf(" // name = %s:%s, description = %s\n" " { \"%s\", \"%s\", %s, QLocale::%s, QLocale::%s },\n", - l.name.toAscii().constData(), - v.toAscii().constData(), - l.description.toAscii().constData(), - l.name.toAscii().constData(), - v.toAscii().constData(), - mapDirection(vlang).toAscii().constData(), - vlang.toAscii().constData(), - country.toAscii().constData()); + l.name.toLatin1().constData(), + v.toLatin1().constData(), + l.description.toLatin1().constData(), + l.name.toLatin1().constData(), + v.toLatin1().constData(), + mapDirection(vlang).toLatin1().constData(), + vlang.toLatin1().constData(), + country.toLatin1().constData()); } } -- cgit v1.2.1