Make some things that return never-null pointers return references instead.
[WebKit-https.git] / Source / WebCore / workers / WorkerGlobalScope.cpp
index 118aa1f..bb868c7 100644 (file)
@@ -323,9 +323,9 @@ EventTargetData* WorkerGlobalScope::eventTargetData()
     return &m_eventTargetData;
 }
 
-EventTargetData* WorkerGlobalScope::ensureEventTargetData()
+EventTargetData& WorkerGlobalScope::ensureEventTargetData()
 {
-    return &m_eventTargetData;
+    return m_eventTargetData;
 }
 
 WorkerGlobalScope::Observer::Observer(WorkerGlobalScope* context)