diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2012-05-03 14:19:19 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-03 17:30:21 +0200 |
commit | 406402dc639db7f5d785961717326467026fb6f1 (patch) | |
tree | 5cb396ddbeefbf917b767fc8d9cdf9516bf13f1d /tests/auto/qscriptvaluegenerated | |
parent | f98e56356b932388b8e6da0802c6225710511709 (diff) | |
download | qtscript-406402dc639db7f5d785961717326467026fb6f1.tar.gz |
Change uses of {to,from}Ascii to {to,from}Latin1
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: I4f44512856ea99112d8eb6d341d6058c1fc439dc
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'tests/auto/qscriptvaluegenerated')
-rw-r--r-- | tests/auto/qscriptvaluegenerated/testgen/testgenerator.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/auto/qscriptvaluegenerated/testgen/testgenerator.cpp b/tests/auto/qscriptvaluegenerated/testgen/testgenerator.cpp index 681c18e..7458a8a 100644 --- a/tests/auto/qscriptvaluegenerated/testgen/testgenerator.cpp +++ b/tests/auto/qscriptvaluegenerated/testgen/testgenerator.cpp @@ -69,7 +69,7 @@ static QString escape(QString txt) } template<typename T> -QString prepareToInsert(T value) {return QString::fromAscii("\"") + escape(value) + "\"";} +QString prepareToInsert(T value) {return QString::fromLatin1("\"") + escape(value) + "\"";} template<> QString prepareToInsert<qsreal>(qsreal value) { @@ -88,7 +88,7 @@ QString prepareToInsert<quint16>(quint16 value) {return QString::number(value);} template<> QString prepareToInsert<bool>(bool value) {return value ? "true" : "false";} template<> -QString prepareToInsert<QString>(QString value) {return QString::fromAscii("\"") + escape(value) + "\"";} +QString prepareToInsert<QString>(QString value) {return QString::fromLatin1("\"") + escape(value) + "\"";} template<typename T> QString typeName() {return QString();} @@ -246,15 +246,15 @@ static QString generateToXXXDef(const QString& name, const QList<QPair<QString, t.first = escape(t.first); if (!valueSet.isEmpty()) { valueSet.append(QString(",")); - tagSet.append(QString::fromAscii(",")); + tagSet.append(QString::fromLatin1(",")); } tagSet.append(QString("\n \"")); tagSet.append(t.first); - tagSet.append(QString::fromAscii("\"")); + tagSet.append(QString::fromLatin1("\"")); if (!((lineBreaker++)%2)) valueSet.append(QString("\n ")); else - valueSet.append(QString::fromAscii(" ")); + valueSet.append(QString::fromLatin1(" ")); valueSet.append(prepareToInsert<T>(t.second)); } return result.arg(name, @@ -313,15 +313,15 @@ QString generateToXXXDef<qsreal>(const QString& name, const QList<QPair<QString, t.first = escape(t.first); if (!valueSet.isEmpty()) { valueSet.append(QString(",")); - tagSet.append(QString::fromAscii(",")); + tagSet.append(QString::fromLatin1(",")); } tagSet.append(QString("\n \"")); tagSet.append(t.first); - tagSet.append(QString::fromAscii("\"")); + tagSet.append(QString::fromLatin1("\"")); if (!((lineBreaker++)%10)) valueSet.append(QString("\n ")); else - valueSet.append(QString::fromAscii(" ")); + valueSet.append(QString::fromLatin1(" ")); valueSet.append(prepareToInsert<qsreal>(t.second)); } @@ -384,15 +384,15 @@ static QString generateCastDef(const QList<QPair<QString, T> >& list) t.first = escape(t.first); if (!valueSet.isEmpty()) { valueSet.append(QString(",")); - tagSet.append(QString::fromAscii(",")); + tagSet.append(QString::fromLatin1(",")); } tagSet.append(QString("\n \"")); tagSet.append(t.first); - tagSet.append(QString::fromAscii("\"")); + tagSet.append(QString::fromLatin1("\"")); if (!((lineBreaker++)%2)) valueSet.append(QString("\n ")); else - valueSet.append(QString::fromAscii(" ")); + valueSet.append(QString::fromLatin1(" ")); valueSet.append(prepareToInsert<T>(t.second)); } return result.arg(typeName<T>(), tagSet.join(QString()), valueSet.join(QString()), QString::number(list.count())); @@ -450,15 +450,15 @@ QString generateCastDef<qsreal>(const QList<QPair<QString, qsreal> >& list) t.first = escape(t.first); if (!valueSet.isEmpty()) { valueSet.append(QString(",")); - tagSet.append(QString::fromAscii(",")); + tagSet.append(QString::fromLatin1(",")); } tagSet.append(QString("\n \"")); tagSet.append(t.first); - tagSet.append(QString::fromAscii("\"")); + tagSet.append(QString::fromLatin1("\"")); if (!((lineBreaker++)%10)) valueSet.append(QString("\n ")); else - valueSet.append(QString::fromAscii(" ")); + valueSet.append(QString::fromLatin1(" ")); valueSet.append(prepareToInsert<qsreal>(t.second)); } return result.arg(typeName<qsreal>(), |