Apply readability-container-size-empty

This commit is contained in:
Alexey Rybalchenko
2021-05-27 00:49:05 +02:00
committed by Dennis Klein
parent f25cca2073
commit c847a7ca02
17 changed files with 43 additions and 43 deletions

View File

@@ -242,7 +242,7 @@ Properties ProgOptions::GetProperties(const string& q) const
}
}
if (properties.size() == 0) {
if (properties.empty()) {
LOG(warn) << "could not find anything with \"" << q << "\"";
}
@@ -277,7 +277,7 @@ map<string, string> ProgOptions::GetPropertiesAsString(const string& q) const
}
}
if (properties.size() == 0) {
if (properties.empty()) {
LOG(warn) << "could not find anything with \"" << q << "\"";
}
@@ -439,7 +439,7 @@ void ProgOptions::PrintOptionsRaw() const
replace(description.begin(), description.end(), '\n', ' ');
cout << o->long_name() << ":" << value.value << ":" << (value.type == "" ? "<unknown>" : value.type) << ":" << description << endl;
cout << o->long_name() << ":" << value.value << ":" << (value.type.empty() ? "<unknown>" : value.type) << ":" << description << endl;
}
}