summaryrefslogtreecommitdiffstats
path: root/libshiboken/basewrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libshiboken/basewrapper.cpp')
-rw-r--r--libshiboken/basewrapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libshiboken/basewrapper.cpp b/libshiboken/basewrapper.cpp
index 055d7e62..fd686e3e 100644
--- a/libshiboken/basewrapper.cpp
+++ b/libshiboken/basewrapper.cpp
@@ -615,7 +615,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);
@@ -941,7 +941,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_);