App: use empty

This commit is contained in:
berniev
2022-08-06 02:41:59 +10:00
committed by wwmayer
parent 29197f503d
commit 1cc6329eab
16 changed files with 127 additions and 127 deletions

View File

@@ -130,7 +130,7 @@ DocumentObject *GeoFeature::resolveElement(DocumentObject *obj, const char *subn
else{
const auto &names = geo->getElementName(element,type);
std::string prefix(subname,element-subname);
if(names.first.size())
if(!names.first.empty())
elementName.first = prefix + names.first;
elementName.second = prefix + names.second;
}