Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: Source/modules/websockets/WebSocket.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/websockets/WebSocket.cpp
diff --git a/Source/modules/websockets/WebSocket.cpp b/Source/modules/websockets/WebSocket.cpp
index 8eb62eb27af63e693dc59932531bcdc92c16ff72..9ca260909c2e720b0525abdf28f09e6dc91cd4d5 100644
--- a/Source/modules/websockets/WebSocket.cpp
+++ b/Source/modules/websockets/WebSocket.cpp
@@ -251,7 +251,7 @@ PassRefPtr<WebSocket> WebSocket::create(ExecutionContext* context, const String&
{
if (url.isNull()) {
exceptionState.throwDOMException(SyntaxError, "Failed to create a WebSocket: the provided URL is invalid.");
- return 0;
+ return nullptr;
}
RefPtr<WebSocket> webSocket(adoptRef(new WebSocket(context)));
@@ -259,7 +259,7 @@ PassRefPtr<WebSocket> WebSocket::create(ExecutionContext* context, const String&
webSocket->connect(context->completeURL(url), protocols, exceptionState);
if (exceptionState.hadException())
- return 0;
+ return nullptr;
return webSocket.release();
}
@@ -389,7 +389,7 @@ void WebSocket::releaseChannel()
{
ASSERT(m_channel);
m_channel->disconnect();
- m_channel = 0;
+ m_channel = nullptr;
}
void WebSocket::send(const String& message, ExceptionState& exceptionState)

Powered by Google App Engine
This is Rietveld 408576698