summaryrefslogtreecommitdiffstats
path: root/libshiboken/basewrapper_p.h
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-24 16:06:48 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-24 16:40:07 -0300
commit2177dc5fded5e4251bbc1a3793b5a8e77dbc20fd (patch)
tree95e340b5f152b26b9c5df1f2405e81f2b32ef0a5 /libshiboken/basewrapper_p.h
parent2e715ed74316704cba426e99ba7fe06ace038ed4 (diff)
downloadshiboken-2177dc5fded5e4251bbc1a3793b5a8e77dbc20fd.tar.gz
shiboken-2177dc5fded5e4251bbc1a3793b5a8e77dbc20fd.tar.xz
shiboken-2177dc5fded5e4251bbc1a3793b5a8e77dbc20fd.zip
Created a new rule to parent ownership.
In the new rule if the child object is a Shiboken wrapper class, the object is not invalidade during the parent destructions, the binding manager will wait for object destructor to invalidade the wrapper. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libshiboken/basewrapper_p.h')
-rw-r--r--libshiboken/basewrapper_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libshiboken/basewrapper_p.h b/libshiboken/basewrapper_p.h
index e1a9a0e7..1357c89a 100644
--- a/libshiboken/basewrapper_p.h
+++ b/libshiboken/basewrapper_p.h
@@ -131,11 +131,13 @@ typedef std::list<SbkBaseWrapper*> ChildrenList;
struct ParentInfo
{
/// Default ctor.
- ParentInfo() : parent(0) {}
+ ParentInfo() : parent(0), hasWrapperRef(false) {}
/// Pointer to parent object.
SbkBaseWrapper* parent;
/// List of object children.
ChildrenList children;
+ /// has internal ref
+ bool hasWrapperRef;
};
/**