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

@@ -345,7 +345,7 @@ QString getRefStr(const App::DocumentObject* obj, const std::vector<std::string>
if (PartDesign::Feature::isDatum(obj))
return QString::fromLatin1(obj->getNameInDocument());
else if (sub.size()>0)
else if (!sub.empty())
return QString::fromLatin1(obj->getNameInDocument()) + QString::fromLatin1(":") +
QString::fromLatin1(sub.front().c_str());
else