diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-12-23 04:17:55 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-12-23 04:17:55 (GMT) |
commit | 4fe8f2ab89ace6e617a81c5e8568c3830135da20 (patch) | |
tree | 900e99845dee1d8717d2a816133971ed3c5653c8 /src/declarative/qml/qmlexpression_p.h | |
parent | b95cf9eccc4a84036c7b5d1443e598d3db2f2d70 (diff) | |
download | Qt-4fe8f2ab89ace6e617a81c5e8568c3830135da20.zip Qt-4fe8f2ab89ace6e617a81c5e8568c3830135da20.tar.gz Qt-4fe8f2ab89ace6e617a81c5e8568c3830135da20.tar.bz2 |
Stop using QGuard
This should allow QGuard to be removed from Qt and QObjectPrivate::ExtraData.
Having QmlGuard inside QmlDeclarativeData reduces the number of new's, and
creating QmlDeclarativeData is faster than QObjectPrivate::ExtraData anyway.
Diffstat (limited to 'src/declarative/qml/qmlexpression_p.h')
-rw-r--r-- | src/declarative/qml/qmlexpression_p.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/declarative/qml/qmlexpression_p.h b/src/declarative/qml/qmlexpression_p.h index 57a3ce2..3f87b2f 100644 --- a/src/declarative/qml/qmlexpression_p.h +++ b/src/declarative/qml/qmlexpression_p.h @@ -57,11 +57,10 @@ #include "qmlbasicscript_p.h" #include "qmlengine_p.h" +#include "qmlguard_p.h" #include <QtScript/qscriptvalue.h> -#include <private/qguard_p.h> - QT_BEGIN_NAMESPACE class QmlAbstractExpression @@ -109,15 +108,15 @@ public: QString url; // This is a QString for a reason. QUrls are slooooooow... int line; - struct SignalGuard : public QGuard<QObject> { + struct SignalGuard : public QmlGuard<QObject> { SignalGuard() : isDuplicate(false), notifyIndex(-1) {} SignalGuard &operator=(QObject *obj) { - QGuard<QObject>::operator=(obj); + QmlGuard<QObject>::operator=(obj); return *this; } SignalGuard &operator=(const SignalGuard &o) { - QGuard<QObject>::operator=(o); + QmlGuard<QObject>::operator=(o); isDuplicate = o.isDuplicate; notifyIndex = o.notifyIndex; return *this; |