diff --git a/src/xmlpatterns/functions/qpatternmatchingfns.cpp b/src/xmlpatterns/functions/qpatternmatchingfns.cpp index 27c7dd445dac7219912f41033686d3f596d4dc9a..4e5848dc5a8f2960a35800b7d50eec806e7b0743 100644 --- a/src/xmlpatterns/functions/qpatternmatchingfns.cpp +++ b/src/xmlpatterns/functions/qpatternmatchingfns.cpp @@ -111,7 +111,7 @@ QString ReplaceFN::parseReplacement(const int, for(int i = 0; i < len; ++i) { const QChar ch(input.at(i)); - switch(ch.toAscii()) + switch(ch.toLatin1()) { case '$': { diff --git a/src/xmlpatterns/parser/qxquerytokenizer.cpp b/src/xmlpatterns/parser/qxquerytokenizer.cpp index 9988c7d326e3df24f15d884c453b628081b987fc..0c8960d42df1ea3215ef44463629a22ac57d1441 100644 --- a/src/xmlpatterns/parser/qxquerytokenizer.cpp +++ b/src/xmlpatterns/parser/qxquerytokenizer.cpp @@ -83,7 +83,7 @@ const QChar XQueryTokenizer::current() const char XQueryTokenizer::peekCurrent() const { - return current().toAscii(); + return current().toLatin1(); } int XQueryTokenizer::peekForColonColon() const @@ -94,7 +94,7 @@ int XQueryTokenizer::peekForColonColon() const while(pos < m_length) { - switch(m_data.at(pos).toAscii()) + switch(m_data.at(pos).toLatin1()) { /* Fallthrough these four. */ case ' ': @@ -317,7 +317,7 @@ Tokenizer::TokenType XQueryTokenizer::consumeWhitespace() char XQueryTokenizer::peekAhead(const int length) const { if(m_pos + length < m_length) - return m_data.at(m_pos + length).toAscii(); + return m_data.at(m_pos + length).toLatin1(); else return 0; } @@ -702,7 +702,7 @@ bool XQueryTokenizer::aheadEquals(const char *const chs, for(int i = offset; i < (len + offset); ++i) { - if(m_data.at(m_pos + i).toAscii() != chs[i - offset]) + if(m_data.at(m_pos + i).toLatin1() != chs[i - offset]) return false; } @@ -711,7 +711,7 @@ bool XQueryTokenizer::aheadEquals(const char *const chs, const TokenMap *XQueryTokenizer::lookupKeyword(const QString &keyword) { - return TokenLookup::value(keyword.toAscii().constData(), keyword.length()); + return TokenLookup::value(keyword.toLatin1().constData(), keyword.length()); } XQueryTokenizer::State XQueryTokenizer::state() const diff --git a/src/xmlpatterns/parser/qxquerytokenizer_p.h b/src/xmlpatterns/parser/qxquerytokenizer_p.h index b0ac364f8a62d80aa6046fc0af30248c4d320659..394904787d938727327a51696c5d74084d3b8548 100644 --- a/src/xmlpatterns/parser/qxquerytokenizer_p.h +++ b/src/xmlpatterns/parser/qxquerytokenizer_p.h @@ -173,7 +173,7 @@ namespace QPatternist * Equivalent to calling: * * @code - * current().toAscii(); + * current().toLatin1(); * @endcode */ inline char peekCurrent() const; diff --git a/tests/auto/network-settings.h b/tests/auto/network-settings.h index f2c12bc0929a7dc37f6f8ea4a6f930cd70d150ec..179eea979b60073d382f30c5e3f74b713c1d2456 100644 --- a/tests/auto/network-settings.h +++ b/tests/auto/network-settings.h @@ -82,12 +82,12 @@ public: // Mandriva; old test server expected << QByteArray( "* OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID STARTTLS LOGINDISABLED] " ) - .append(QtNetworkSettings::serverName().toAscii()) + .append(QtNetworkSettings::serverName().toLatin1()) .append(" Cyrus IMAP4 v2.3.11-Mandriva-RPM-2.3.11-6mdv2008.1 server ready\r\n"); // Ubuntu 10.04; new test server expected << QByteArray( "* OK " ) - .append(QtNetworkSettings::serverLocalName().toAscii()) + .append(QtNetworkSettings::serverLocalName().toLatin1()) .append(" Cyrus IMAP4 v2.2.13-Debian-2.2.13-19 server ready\r\n"); // Feel free to add more as needed @@ -107,12 +107,12 @@ public: // Mandriva; old test server expected << QByteArray( "* OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID AUTH=PLAIN SASL-IR] " ) - .append(QtNetworkSettings::serverName().toAscii()) + .append(QtNetworkSettings::serverName().toLatin1()) .append(" Cyrus IMAP4 v2.3.11-Mandriva-RPM-2.3.11-6mdv2008.1 server ready\r\n"); // Ubuntu 10.04; new test server expected << QByteArray( "* OK " ) - .append(QtNetworkSettings::serverLocalName().toAscii()) + .append(QtNetworkSettings::serverLocalName().toLatin1()) .append(" Cyrus IMAP4 v2.2.13-Debian-2.2.13-19 server ready\r\n"); // Feel free to add more as needed diff --git a/tools/xmlpatterns/qapplicationargumentparser.cpp b/tools/xmlpatterns/qapplicationargumentparser.cpp index 008d905939963b61c843af224f7877dcf41c54b0..62a15cc5d2b1c24520c892676bbfdb2739ab6902 100644 --- a/tools/xmlpatterns/qapplicationargumentparser.cpp +++ b/tools/xmlpatterns/qapplicationargumentparser.cpp @@ -299,7 +299,7 @@ void QApplicationArgumentParserPrivate::displayVersion() const { QTextStream out(stderr); - out << tr("%1 version %2 using Qt %3").arg(QCoreApplication::applicationName(), applicationVersion, QString::fromAscii(qVersion())) + out << tr("%1 version %2 using Qt %3").arg(QCoreApplication::applicationName(), applicationVersion, QString::fromLatin1(qVersion())) << endl; }