Mod: use empty

This commit is contained in:
berniev
2022-08-06 02:29:31 +10:00
committed by wwmayer
parent 22dcf5866f
commit 53ba98d636
134 changed files with 419 additions and 419 deletions

View File

@@ -556,7 +556,7 @@ QGIView *QGSPage::findParent(QGIView *view) const
if (dim) {
std::vector<App::DocumentObject *> objs = dim->References2D.getValues();
if (objs.size() > 0) {
if (!objs.empty()) {
std::vector<App::DocumentObject *> objs = dim->References2D.getValues();
// Attach the dimension to the first object's group
for (std::vector<QGIView *>::const_iterator it = qviews.begin(); it != qviews.end(); ++it) {