diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-09-24 16:06:48 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:07:19 -0300 |
commit | 1f1fc9f504285c916785dd9daec557e24b332135 (patch) | |
tree | 643529cb08402202ad372c2d9811b039beac32eb /libshiboken/basewrapper_p.h | |
parent | 85f926e8fef29967393a11832ac26cafecc9b777 (diff) |
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.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libshiboken/basewrapper_p.h b/libshiboken/basewrapper_p.h index e1a9a0e73..1357c89a6 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; }; /** |