summaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
authorBrian Jensen <Jensen.J.Brian@gmail.com>2013-11-05 15:42:43 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-28 14:04:20 (GMT)
commit08718d2e692bfa78654efd8beafc87197522dca6 (patch)
tree669ab014a5d0d4a21701ecf5509a2bc3c226772b /src/3rdparty
parent9bbe9411981a8b3fd1e6bd243a4afd3015ae9e4a (diff)
downloadQt-08718d2e692bfa78654efd8beafc87197522dca6.zip
Qt-08718d2e692bfa78654efd8beafc87197522dca6.tar.gz
Qt-08718d2e692bfa78654efd8beafc87197522dca6.tar.bz2
WebKit Nullptr type fixes when using libc++
These changes correct the Nullptr type handling for libc++ based system. Task-number: QTBUG-34652 Change-Id: Ied51c8683cce86beb24ed2fef70e99bb4dfc15e5 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/webkit/Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp14
-rw-r--r--src/3rdparty/webkit/Source/WebKit/qt/Api/qgraphicswebview.cpp2
-rw-r--r--src/3rdparty/webkit/Source/WebKit/qt/WebCoreSupport/NotificationPresenterClientQt.cpp4
3 files changed, 10 insertions, 10 deletions
diff --git a/src/3rdparty/webkit/Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp b/src/3rdparty/webkit/Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp
index f40da4d..a630432 100644
--- a/src/3rdparty/webkit/Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp
+++ b/src/3rdparty/webkit/Source/WebCore/platform/network/qt/QNetworkReplyHandler.cpp
@@ -235,7 +235,7 @@ QNetworkReply* QNetworkReplyWrapper::release()
resetConnections();
QNetworkReply* reply = m_reply;
m_reply = 0;
- m_sniffer = 0;
+ m_sniffer = nullptr;
reply->setParent(0);
return reply;
@@ -300,7 +300,7 @@ void QNetworkReplyWrapper::receiveSniffedMIMEType()
Q_ASSERT(m_sniffer);
m_sniffedMIMEType = m_sniffer->mimeType();
- m_sniffer = 0;
+ m_sniffer = nullptr;
emitMetaDataChanged();
}
@@ -417,7 +417,7 @@ QNetworkReply* QNetworkReplyHandler::release()
return 0;
QNetworkReply* reply = m_replyWrapper->release();
- m_replyWrapper = 0;
+ m_replyWrapper = nullptr;
return reply;
}
@@ -440,12 +440,12 @@ void QNetworkReplyHandler::finish()
ResourceHandleClient* client = m_resourceHandle->client();
if (!client) {
- m_replyWrapper = 0;
+ m_replyWrapper = nullptr;
return;
}
if (m_replyWrapper->wasRedirected()) {
- m_replyWrapper = 0;
+ m_replyWrapper = nullptr;
m_queue.push(&QNetworkReplyHandler::start);
return;
}
@@ -465,7 +465,7 @@ void QNetworkReplyHandler::finish()
}
}
- m_replyWrapper = 0;
+ m_replyWrapper = nullptr;
}
void QNetworkReplyHandler::sendResponseIfNeeded()
@@ -539,7 +539,7 @@ void QNetworkReplyHandler::redirect(ResourceResponse& response, const QUrl& redi
newUrl.toString(),
QCoreApplication::translate("QWebPage", "Redirection limit reached"));
client->didFail(m_resourceHandle, error);
- m_replyWrapper = 0;
+ m_replyWrapper = nullptr;
return;
}
diff --git a/src/3rdparty/webkit/Source/WebKit/qt/Api/qgraphicswebview.cpp b/src/3rdparty/webkit/Source/WebKit/qt/Api/qgraphicswebview.cpp
index b7b28bc..c4dd6d0 100644
--- a/src/3rdparty/webkit/Source/WebKit/qt/Api/qgraphicswebview.cpp
+++ b/src/3rdparty/webkit/Source/WebKit/qt/Api/qgraphicswebview.cpp
@@ -471,7 +471,7 @@ void QGraphicsWebViewPrivate::detachCurrentPage()
return;
page->d->view.clear();
- page->d->client = 0;
+ page->d->client = nullptr;
// if the page was created by us, we own it and need to
// destroy it as well.
diff --git a/src/3rdparty/webkit/Source/WebKit/qt/WebCoreSupport/NotificationPresenterClientQt.cpp b/src/3rdparty/webkit/Source/WebKit/qt/WebCoreSupport/NotificationPresenterClientQt.cpp
index b2b8132..7ff9278 100644
--- a/src/3rdparty/webkit/Source/WebKit/qt/WebCoreSupport/NotificationPresenterClientQt.cpp
+++ b/src/3rdparty/webkit/Source/WebKit/qt/WebCoreSupport/NotificationPresenterClientQt.cpp
@@ -73,9 +73,9 @@ NotificationWrapper::NotificationWrapper()
#if ENABLE(NOTIFICATIONS)
#ifndef QT_NO_SYSTEMTRAYICON
- m_notificationIcon = 0;
+ m_notificationIcon = nullptr;
#endif
- m_presenter = 0;
+ m_presenter = nullptr;
#endif
}