summaryrefslogtreecommitdiffstats
path: root/src/script/qscriptclass.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/qscriptclass.h')
-rw-r--r--src/script/qscriptclass.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/qscriptclass.h b/src/script/qscriptclass.h
index dec53e8..7070470 100644
--- a/src/script/qscriptclass.h
+++ b/src/script/qscriptclass.h
@@ -47,6 +47,7 @@
#ifndef QT_NO_SCRIPT
#include <QtCore/qvariant.h>
+#include <QtCore/qscopedpointer.h>
#include <QtScript/qscriptvalue.h>
QT_BEGIN_HEADER
@@ -103,7 +104,7 @@ public:
protected:
QScriptClass(QScriptEngine *engine, QScriptClassPrivate &dd);
- QScriptClassPrivate *d_ptr;
+ QScopedPointer<QScriptClassPrivate> d_ptr;
private:
Q_DECLARE_PRIVATE(QScriptClass)