summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-07-20 23:18:51 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-07-20 23:18:51 (GMT)
commit00b9679135be8d83556a31ebe0b3d39d201e76c5 (patch)
tree74f300e48d0f05056d98437c91a0c46c4512349b /src
parentab7d1fe008d1e2181fd8bd07fad5f12bfaa1ba16 (diff)
downloadQt-00b9679135be8d83556a31ebe0b3d39d201e76c5.zip
Qt-00b9679135be8d83556a31ebe0b3d39d201e76c5.tar.gz
Qt-00b9679135be8d83556a31ebe0b3d39d201e76c5.tar.bz2
Fix crash.
Diffstat (limited to 'src')
-rw-r--r--src/declarative/fx/qfxvisualitemmodel.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/declarative/fx/qfxvisualitemmodel.cpp b/src/declarative/fx/qfxvisualitemmodel.cpp
index 1b15a48..3d336c5 100644
--- a/src/declarative/fx/qfxvisualitemmodel.cpp
+++ b/src/declarative/fx/qfxvisualitemmodel.cpp
@@ -51,6 +51,7 @@
#include "qmlopenmetaobject.h"
#include "qmllistaccessor.h"
#include "qfxvisualitemmodel.h"
+#include "private/qguard_p.h"
#include <QtCore/qdebug.h>
QML_DECLARE_TYPE(QListModelInterface)
@@ -64,9 +65,9 @@ class QFxVisualItemModelPrivate : public QObjectPrivate
public:
QFxVisualItemModelPrivate(QmlContext *);
- QListModelInterface *m_listModelInterface;
- QAbstractItemModel *m_abstractItemModel;
- QFxVisualItemModel *m_visualItemModel;
+ QGuard<QListModelInterface> m_listModelInterface;
+ QGuard<QAbstractItemModel> m_abstractItemModel;
+ QGuard<QFxVisualItemModel> m_visualItemModel;
QString m_part;
QmlComponent *m_delegate;