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

@@ -230,7 +230,7 @@ Py::List AttachEnginePy::getImplementedModes(void) const
Py::List ret;
AttachEngine &attacher = *(this->getAttachEnginePtr());
for(int imode = 0 ; imode < mmDummy_NumberOfModes ; imode++){
if(attacher.modeRefTypes[imode].size() > 0){
if(!attacher.modeRefTypes[imode].empty()){
ret.append(Py::String(attacher.getModeName(eMapMode(imode))));
}
}