summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-07-19 13:40:34 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-07-19 11:43:26 +0000
commita1b09497f2f198e6ea523637321a0e11fa310d9c (patch)
tree64ce692d1c44186a33eea523c7c549c8a946a9a6
parent004e75a96c61f4e9dd18030a5fae9a6190eb6879 (diff)
libshiboken: Use std::set::find() instead of searching the set
Task-number: PYSIDE-727 Change-Id: Ia79f34ed466eb7652946e49db6ef6db8dd9fa03d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--sources/shiboken2/libshiboken/basewrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken2/libshiboken/basewrapper.cpp b/sources/shiboken2/libshiboken/basewrapper.cpp
index 122e60e4..43c162de 100644
--- a/sources/shiboken2/libshiboken/basewrapper.cpp
+++ b/sources/shiboken2/libshiboken/basewrapper.cpp
@@ -1302,7 +1302,7 @@ void removeParent(SbkObject* child, bool giveOwnershipBack, bool keepReference)
ChildrenList& oldBrothers = pInfo->parent->d->parentInfo->children;
// Verify if this child is part of parent list
- ChildrenList::iterator iChild = std::find(oldBrothers.begin(), oldBrothers.end(), child);
+ auto iChild = oldBrothers.find(child);
if (iChild == oldBrothers.end())
return;