Make some things that return never-null pointers return references instead.
[WebKit-https.git] / Source / WebCore / Modules / battery / BatteryManager.h
index cbf5b66..08b5b68 100644 (file)
@@ -66,7 +66,7 @@ public:
 
 protected:
     virtual EventTargetData* eventTargetData() { return &m_eventTargetData; }
-    virtual EventTargetData* ensureEventTargetData() { return &m_eventTargetData; }
+    virtual EventTargetData& ensureEventTargetData() { return m_eventTargetData; }
 
 private:
     explicit BatteryManager(Navigator*);