summaryrefslogtreecommitdiffstats
path: root/src/script/qscriptvalueiterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/qscriptvalueiterator.h')
-rw-r--r--src/script/qscriptvalueiterator.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/script/qscriptvalueiterator.h b/src/script/qscriptvalueiterator.h
index 2242c68..c8684ea 100644
--- a/src/script/qscriptvalueiterator.h
+++ b/src/script/qscriptvalueiterator.h
@@ -46,6 +46,8 @@
#ifndef QT_NO_SCRIPT
+#include <QtCore/qscopedpointer.h>
+
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
@@ -84,7 +86,7 @@ public:
QScriptValueIterator& operator=(QScriptValue &value);
private:
- QScriptValueIteratorPrivate *d_ptr;
+ QScopedPointer<QScriptValueIteratorPrivate> d_ptr;
Q_DECLARE_PRIVATE(QScriptValueIterator)
Q_DISABLE_COPY(QScriptValueIterator)