From: Thiago Macieira Date: Wed, 2 May 2012 14:32:26 +0000 (+0200) Subject: Change remaining uses of {to,from}Ascii to {to,from}Latin1 [qdoc] X-Git-Tag: 071012110112~1252 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c2d643e01c9ede3c5495c3043cc2bae1419dc53;p=profile%2Fivi%2Fqtbase.git Change remaining uses of {to,from}Ascii to {to,from}Latin1 [qdoc] 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: I2049c1919c15142ffb1dc406d183c6669ac3b1d6 Reviewed-by: Casper van Donderen --- diff --git a/src/tools/qdoc/tokenizer.cpp b/src/tools/qdoc/tokenizer.cpp index 7d9039e..e9906a1 100644 --- a/src/tools/qdoc/tokenizer.cpp +++ b/src/tools/qdoc/tokenizer.cpp @@ -512,7 +512,7 @@ void Tokenizer::initialize(const Config &config) QStringList tokens = config.getStringList(LANGUAGE_CPP + Config::dot + CONFIG_IGNORETOKENS); foreach (const QString &t, tokens) { - const QByteArray tb = t.toAscii(); + const QByteArray tb = t.toLatin1(); ignoredTokensAndDirectives->insert(tb, false); insertKwordIntoHash(tb.data(), -1); } @@ -520,7 +520,7 @@ void Tokenizer::initialize(const Config &config) QStringList directives = config.getStringList(LANGUAGE_CPP + Config::dot + CONFIG_IGNOREDIRECTIVES); foreach (const QString &d, directives) { - const QByteArray db = d.toAscii(); + const QByteArray db = d.toLatin1(); ignoredTokensAndDirectives->insert(db, true); insertKwordIntoHash(db.data(), -1); }