Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replace QString::toAscii with QString::toLatin1

QString::toAscii removed in Qt 5.
  • Loading branch information...
commit c60e2450ccd1002546970ae1dfcb841f98b6bc52 1 parent ccfbaa8
@mhoran mhoran authored
View
2  src/CommandParser.cpp
@@ -63,7 +63,7 @@ void CommandParser::processArgument(const char *data) {
}
if (m_arguments.length() == m_argumentsExpected) {
- Command *command = m_commandFactory->createCommand(m_commandName.toAscii().constData(), m_arguments);
+ Command *command = m_commandFactory->createCommand(m_commandName.toLatin1().constData(), m_arguments);
emit commandReady(command);
reset();
}
View
2  src/Connection.cpp
@@ -64,7 +64,7 @@ void Connection::writeResponse(Response *response) {
QByteArray messageUtf8 = response->message();
QString messageLength = QString::number(messageUtf8.size()) + "\n";
- m_socket->write(messageLength.toAscii());
+ m_socket->write(messageLength.toLatin1());
m_socket->write(messageUtf8);
}
View
2  src/NetworkAccessManager.cpp
@@ -21,7 +21,7 @@ QNetworkReply* NetworkAccessManager::createRequest(QNetworkAccessManager::Operat
QHashIterator<QString, QString> item(m_headers);
while (item.hasNext()) {
item.next();
- new_request.setRawHeader(item.key().toAscii(), item.value().toAscii());
+ new_request.setRawHeader(item.key().toLatin1(), item.value().toLatin1());
}
QNetworkReply *reply = QNetworkAccessManager::createRequest(operation, new_request, outgoingData);
emit requestCreated(url, reply);
View
2  src/SetCookie.cpp
@@ -8,7 +8,7 @@ SetCookie::SetCookie(WebPageManager *manager, QStringList &arguments, QObject *p
void SetCookie::start()
{
- QList<QNetworkCookie> cookies = QNetworkCookie::parseCookies(arguments()[0].toAscii());
+ QList<QNetworkCookie> cookies = QNetworkCookie::parseCookies(arguments()[0].toLatin1());
NetworkCookieJar *jar = manager()->cookieJar();
jar->overwriteCookies(cookies);
finish(true);
View
2  src/WebPage.cpp
@@ -125,7 +125,7 @@ InvocationResult WebPage::invokeCapybaraFunction(const char *name, const QString
}
InvocationResult WebPage::invokeCapybaraFunction(QString &name, const QStringList &arguments) {
- return invokeCapybaraFunction(name.toAscii().data(), arguments);
+ return invokeCapybaraFunction(name.toLatin1().data(), arguments);
}
void WebPage::javaScriptConsoleMessage(const QString &message, int lineNumber, const QString &sourceID) {
Please sign in to comment.
Something went wrong with that request. Please try again.