Fix the Qt build
authorzack <zack@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Jun 2007 10:08:11 +0000 (10:08 +0000)
committerzack <zack@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Jun 2007 10:08:11 +0000 (10:08 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22067 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/bindings/qt/qt_instance.cpp
JavaScriptCore/bindings/qt/qt_instance.h

index 98080bc..08ecf2f 100644 (file)
@@ -1,3 +1,11 @@
+2007-06-08  Zack Rusin  <zrusin@trolltech.com>
+
+        Fix the Qt build
+
+        * bindings/qt/qt_instance.cpp:
+        (KJS::Bindings::QtInstance::QtInstance):
+        * bindings/qt/qt_instance.h:
+
 2007-06-07  Anders Carlsson  <andersca@apple.com>
 
         Reviewed by Geoff.
index 7e9bc7e..1278da1 100644 (file)
 namespace KJS {
 namespace Bindings {
 
-QtInstance::QtInstance(QObject* o)
-    : Instance(),
+QtInstance::QtInstance(QObject* o, PassRefPtr<RootObject> rootObject)
+    : Instance(rootObject),
       _class(0),
       _object(o)
 {
-    setRootObject(0);
 }
 
 QtInstance::~QtInstance() 
@@ -43,9 +42,8 @@ QtInstance::~QtInstance()
 }
 
 QtInstance::QtInstance(const QtInstance& other)
-    : Instance(), _class(0), _object(other._object)
+    : Instance(other.rootObject()), _class(0), _object(other._object)
 {
-    setRootObject(other.rootObject());
 }
 
 QtInstance& QtInstance::operator=(const QtInstance& other)
index d19442f..f5be9de 100644 (file)
@@ -35,7 +35,7 @@ class QtClass;
 class QtInstance : public Instance
 {
 public:
-    QtInstance(QObject* instance);
+    QtInstance(QObject* instance, PassRefPtr<RootObject>);
         
     ~QtInstance ();