Unreviewed, fix build after r192848 and r192849
[WebKit-https.git] / Source / WebCore / Modules / gamepad / Gamepad.h
index 9dc1fdc..6461aba 100644 (file)
@@ -39,9 +39,9 @@ class PlatformGamepad;
 
 class Gamepad: public RefCounted<Gamepad> {
 public:
-    static PassRefPtr<Gamepad> create(const PlatformGamepad& platformGamepad)
+    static Ref<Gamepad> create(const PlatformGamepad& platformGamepad)
     {
-        return adoptRef(new Gamepad(platformGamepad));
+        return adoptRef(*new Gamepad(platformGamepad));
     }
     ~Gamepad();