diff options
author | Renato Araujo Oliveira Filho <renato.filho@openbossa.org> | 2011-02-02 09:43:51 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:13:53 -0300 |
commit | 1c412be5beb35445d2aa985a052b89e74184cb64 (patch) | |
tree | 5e5bf028a992e84a2c60e51405c94e3aee8ee750 /libshiboken/basewrapper.cpp | |
parent | 315ed272511b2d8cd6bfa61979cffbfb1fc64b5a (diff) |
Replaced use from QList to QSet in children list.
Patch from farsmo <farsmo@sogetthis.com>
Reviewer: Hugo Parente <hugo.lima@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libshiboken/basewrapper.cpp')
-rw-r--r-- | libshiboken/basewrapper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp index 0fbd3b161..fe575da6d 100644 --- a/libshiboken/basewrapper.cpp +++ b/libshiboken/basewrapper.cpp @@ -616,7 +616,7 @@ static void _destroyParentInfo(SbkObject* obj, bool keepReference) ParentInfo* pInfo = obj->d->parentInfo; if (pInfo) { while(!pInfo->children.empty()) { - SbkObject* first = pInfo->children.front(); + SbkObject* first = *pInfo->children.begin(); // Mark child as invalid Shiboken::Object::invalidate(first); removeParent(first, false, keepReference); @@ -942,7 +942,7 @@ void setParent(PyObject* parent, PyObject* child) pInfo = child_->d->parentInfo = new ParentInfo; pInfo->parent = parent_; - parent_->d->parentInfo->children.push_back(child_); + parent_->d->parentInfo->children.insert(child_); // Add Parent ref Py_INCREF(child_); |