summaryrefslogtreecommitdiffstats
path: root/src/script/qscriptstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/qscriptstring.h')
-rw-r--r--src/script/qscriptstring.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/script/qscriptstring.h b/src/script/qscriptstring.h
index db4d59a..7256ee9 100644
--- a/src/script/qscriptstring.h
+++ b/src/script/qscriptstring.h
@@ -46,6 +46,8 @@
#ifndef QT_NO_SCRIPT
+#include <QtCore/qscopedpointer.h>
+
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
@@ -54,6 +56,7 @@ QT_MODULE(Script)
class QScriptEngine;
class QScriptStringPrivate;
+struct QScriptStringPrivatePointerHandler;
class Q_SCRIPT_EXPORT QScriptString
{
@@ -73,7 +76,7 @@ public:
operator QString() const;
private:
- QScriptStringPrivate *d_ptr;
+ QScopedCustomPointer<QScriptStringPrivate, QScriptStringPrivatePointerHandler> d_ptr;
Q_DECLARE_PRIVATE(QScriptString)
};