aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/libshiboken/basewrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/libshiboken/basewrapper.cpp')
-rw-r--r--sources/shiboken2/libshiboken/basewrapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken2/libshiboken/basewrapper.cpp b/sources/shiboken2/libshiboken/basewrapper.cpp
index ec705a421..0aba26679 100644
--- a/sources/shiboken2/libshiboken/basewrapper.cpp
+++ b/sources/shiboken2/libshiboken/basewrapper.cpp
@@ -1531,7 +1531,7 @@ std::string info(SbkObject* self)
s << String::toCString(parent) << "\n";
}
- if (self->d->parentInfo && self->d->parentInfo->children.size()) {
+ if (self->d->parentInfo && !self->d->parentInfo->children.empty()) {
s << "children.......... ";
ChildrenList& children = self->d->parentInfo->children;
for (ChildrenList::const_iterator it = children.begin(); it != children.end(); ++it) {
@@ -1541,7 +1541,7 @@ std::string info(SbkObject* self)
s << '\n';
}
- if (self->d->referredObjects && self->d->referredObjects->size()) {
+ if (self->d->referredObjects && !self->d->referredObjects->empty()) {
Shiboken::RefCountMap& map = *self->d->referredObjects;
s << "referred objects.. ";
Shiboken::RefCountMap::const_iterator it = map.begin();