Fix the Qt build.
[WebKit-https.git] / WebCore / bridge / qt / qt_instance.cpp
index 853b1ac..6c5eb22 100644 (file)
@@ -132,7 +132,7 @@ PassRefPtr<QtInstance> QtInstance::getQtInstance(QObject* o, PassRefPtr<RootObje
 
     foreach(QtInstance* instance, cachedInstances.values(o)) {
         if (instance->rootObject() == rootObject)
-            return instance.get();
+            return instance;
     }
 
     RefPtr<QtInstance> ret = adoptRef(new QtInstance(o, rootObject));
@@ -147,7 +147,7 @@ JSObject* QtInstance::getRuntimeObject(PassRefPtr<QtInstance> instance)
     JSObject* ret = cachedObjects.value(instance.get());
     if (!ret) {
         ret = new QtRuntimeObjectImp(instance);
-        cachedObjects.insert(ret->getInternalInstance(), ret);
+        cachedObjects.insert(instance.get(), ret);
     }
     return ret;
 }