Mod: use empty

This commit is contained in:
berniev
2022-08-06 02:29:31 +10:00
committed by wwmayer
parent 1cc6329eab
commit b796a0d376
134 changed files with 419 additions and 419 deletions

View File

@@ -164,7 +164,7 @@ std::vector<std::string> DrawViewDimExtent::getSubNames(void)
{
std::vector<std::string> edgeNames = Source.getSubValues();
if (edgeNames.empty() ||
edgeNames[0].size() != 0) {
!edgeNames[0].empty()) {
return std::vector<std::string>(); //garbage first entry - nop
}
return edgeNames;
@@ -184,7 +184,7 @@ pointPair DrawViewDimExtent::getPointsTwoVerts()
}
std::vector<std::string> cTags = CosmeticTags.getValues();
if (cTags.size() < 1) {
if (cTags.empty()) {
return errorValue;
}
@@ -206,7 +206,7 @@ bool DrawViewDimExtent::checkReferences2D() const
}
std::vector<std::string> cTags = CosmeticTags.getValues();
if (cTags.size() < 1) {
if (cTags.empty()) {
return false;
}