aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_objects.h
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@digia.com>2012-12-13 10:19:14 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-12-13 12:44:29 +0100
commita809f30dd4aa10893a46b208a56ba3577a89aaec (patch)
tree75fb004fba546fa2d824835bf40e89d5a083f9ba /qmljs_objects.h
parent0485444fbbc16371c41847b2a380f32679cd734a (diff)
Use a smart pointer for Object::members.
Change-Id: I070c00281a5b92de82568d4d4e0bb35700233a21 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qmljs_objects.h')
-rw-r--r--qmljs_objects.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/qmljs_objects.h b/qmljs_objects.h
index 384c6934b7..99e29feaf7 100644
--- a/qmljs_objects.h
+++ b/qmljs_objects.h
@@ -51,6 +51,7 @@
#include <QtCore/QString>
#include <QtCore/QHash>
#include <QtCore/QRegularExpression>
+#include <QtCore/QScopedPointer>
#include <cstdio>
#include <cassert>
@@ -418,12 +419,11 @@ private:
struct Object: Managed {
Object *prototype;
- PropertyTable *members;
+ QScopedPointer<PropertyTable> members;
bool extensible;
Object()
: prototype(0)
- , members(0)
, extensible(true) {}
virtual ~Object();