Make some things that return never-null pointers return references instead.
[WebKit-https.git] / Source / WebCore / Modules / websockets / WebSocket.cpp
index 5fa3d9f..13a5ad8 100644 (file)
@@ -584,9 +584,9 @@ EventTargetData* WebSocket::eventTargetData()
     return &m_eventTargetData;
 }
 
-EventTargetData* WebSocket::ensureEventTargetData()
+EventTargetData& WebSocket::ensureEventTargetData()
 {
-    return &m_eventTargetData;
+    return m_eventTargetData;
 }
 
 size_t WebSocket::getFramingOverhead(size_t payloadSize)