V4: make Scope uncopyable.

Copying will result in a dangling pointer.

Change-Id: I7f7e0df87326f43cf0ee5da6562726a5e3d2ca9c
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
Erik Verbruggen 2013-10-17 14:31:10 +02:00 committed by The Qt Project
parent f82e2df554
commit 599b70c51b
1 changed files with 3 additions and 1 deletions

View File

@ -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