Make some things that return never-null pointers return references instead.
[WebKit-https.git] / Source / WebCore / Modules / mediastream / RTCDataChannel.cpp
index 045c5d7..15d26b6 100644 (file)
@@ -253,9 +253,9 @@ EventTargetData* RTCDataChannel::eventTargetData()
     return &m_eventTargetData;
 }
 
-EventTargetData* RTCDataChannel::ensureEventTargetData()
+EventTargetData& RTCDataChannel::ensureEventTargetData()
 {
-    return &m_eventTargetData;
+    return m_eventTargetData;
 }
 
 void RTCDataChannel::scheduleDispatchEvent(PassRefPtr<Event> event)