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

@@ -723,7 +723,7 @@ SoFCUnifiedSelection::handleEvent(SoHandleEventAction * action)
if (mymode == AUTO || mymode == ON) {
// check to see if the mouse is over our geometry...
auto infos = this->getPickedList(action,true);
if(infos.size())
if(!infos.empty())
setHighlight(infos[0]);
else {
setHighlight(PickedInfo());
@@ -1103,7 +1103,7 @@ void SoFCSelectionRoot::finish()
}
SoNode *SoFCSelectionRoot::getCurrentRoot(bool front, SoNode *def) {
if(SelStack.size())
if(!SelStack.empty())
return front?SelStack.front():SelStack.back();
return def;
}