Get rid of the QV4FUNCTION macro in qv8engine_p.h
authorLars Knoll <lars.knoll@digia.com>
Mon, 3 Jun 2013 12:56:12 +0000 (14:56 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Mon, 3 Jun 2013 13:02:45 +0000 (15:02 +0200)
Change-Id: I4fdff5159c2443dab232d90a906cfb8203bf9c05
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/qqmlcomponent.cpp
src/qml/qml/v8/qv8engine_p.h

index c0c5abe..94aeda0 100644 (file)
@@ -1363,6 +1363,8 @@ void QQmlComponentPrivate::initializeObjectWithInitialProperties(const QV4::Valu
     }
 }
 
+#define V4FUNCTION(function, engine) engine->newBuiltinFunction(engine->rootContext, engine->id_undefined, function)
+
 
 QQmlComponentExtension::QQmlComponentExtension(QV8Engine *engine)
 {
index b50c462..9c2d1d9 100644 (file)
@@ -84,8 +84,6 @@ namespace QV4 {
     struct Value;
 }
 
-#define V4FUNCTION(function, engine) new (engine->memoryManager) QV4::BuiltinFunctionOld(engine->rootContext, engine->id_undefined, function)
-
 // Uncomment the following line to enable global handle debugging.  When enabled, all the persistent
 // handles allocated using qPersistentNew() (or registered with qPersistentRegsiter()) and disposed
 // with qPersistentDispose() are tracked.  If you try and do something illegal, like double disposing