summaryrefslogtreecommitdiffstats
path: root/src/script/qscriptable.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/qscriptable.h')
-rw-r--r--src/script/qscriptable.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/script/qscriptable.h b/src/script/qscriptable.h
index 1015a00..76a0496 100644
--- a/src/script/qscriptable.h
+++ b/src/script/qscriptable.h
@@ -46,6 +46,8 @@
#ifndef QT_NO_SCRIPT
+#include <QtCore/qscopedpointer.h>
+
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
@@ -73,7 +75,7 @@ public:
QScriptValue argument(int index) const;
private:
- QScriptablePrivate *d_ptr;
+ QScopedPointer<QScriptablePrivate> d_ptr;
Q_DISABLE_COPY(QScriptable)
Q_DECLARE_PRIVATE(QScriptable)