aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@me.com>2013-10-17 14:31:10 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-01 17:53:07 +0100
commit599b70c51b17e89dbcc5f1252ef18535fa99f5dd (patch)
tree91f5c0c3abee344a012c0e9d5a53520db21ca7ca /src
parentf82e2df554f3d66f88e0b6c8c02b1efe894248cb (diff)
V4: make Scope uncopyable.
Copying will result in a dangling pointer. Change-Id: I7f7e0df87326f43cf0ee5da6562726a5e3d2ca9c Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/qml/jsruntime/qv4scopedvalue_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4scopedvalue_p.h b/src/qml/jsruntime/qv4scopedvalue_p.h
index 0465cd72c5..094f5ce2bb 100644
--- a/src/qml/jsruntime/qv4scopedvalue_p.h
+++ b/src/qml/jsruntime/qv4scopedvalue_p.h
@@ -95,9 +95,11 @@ struct Scope {
#ifndef QT_NO_DEBUG
mutable int size;
#endif
+
+private:
+ Q_DISABLE_COPY(Scope)
};
-struct ScopedValue;
struct ValueRef;
struct ScopedValue