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 9eb686ed0..81830952a 100644
--- a/sources/shiboken2/libshiboken/basewrapper.cpp
+++ b/sources/shiboken2/libshiboken/basewrapper.cpp
@@ -1502,7 +1502,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.......... ";
for (SbkObject *sbkChild : self->d->parentInfo->children) {
Shiboken::AutoDecRef child(PyObject_Str(reinterpret_cast<PyObject *>(sbkChild)));
@@ -1511,7 +1511,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.. ";
std::string lastKey;