summaryrefslogtreecommitdiff
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-11-22 14:00:36 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2022-11-29 12:39:45 -0500
commit714a466eeb42809fa56d78d6aef6cde70d938af5 (patch)
tree3da0f6bfd63482bf0af78ae0244842f199478b7e /Source/cmVisualStudio10TargetGenerator.cxx
parent6d2aa54d620a6526cc23e59b30ee0191d61ac59d (diff)
downloadcmake-714a466eeb42809fa56d78d6aef6cde70d938af5.tar.gz
clang-tidy: fix `readability-container-size-empty` lints
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 07adce0446..28df926719 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -2533,7 +2533,7 @@ void cmVisualStudio10TargetGenerator::WriteAllSources(Elem& e0)
Elem e2(e1, tool);
bool isCSharp = (si.Source->GetLanguage() == "CSharp");
- if (isCSharp && exclude_configs.size() > 0) {
+ if (isCSharp && !exclude_configs.empty()) {
std::stringstream conditions;
bool firstConditionSet{ false };
for (const auto& ci : include_configs) {