summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-05-02 16:32:26 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-04 12:48:06 +0200
commitfba4d96750523dcb64855715a981755761110ea5 (patch)
tree58e8cca632d26918597fea484b3b2c6bc612940c /util
parent276776f50369580f33ec01b22aa928e48358a0f7 (diff)
downloadqtbase-fba4d96750523dcb64855715a981755761110ea5.tar.gz
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 <lars.knoll@nokia.com>
Diffstat (limited to 'util')
-rw-r--r--util/xkbdatagen/main.cpp28
1 files changed, 14 insertions, 14 deletions
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());
}
}