Gui: use empty

This commit is contained in:
berniev
2022-08-06 03:13:53 +10:00
committed by wwmayer
parent 54a0f44b81
commit 2db561561e
33 changed files with 154 additions and 154 deletions

View File

@@ -1009,7 +1009,7 @@ Base::BoundBox3d ViewProvider::getBoundingBox(const char *subname, bool transfor
auto doc = Application::Instance->activeDocument();
if(doc) {
auto views = doc->getMDIViewsOfType(View3DInventor::getClassTypeId());
if(views.size())
if(!views.empty())
iview = dynamic_cast<View3DInventor*>(views.front());
}
if(!iview) {