diff options
author | Matthias Maennich <matthias@maennich.net> | 2017-09-20 22:50:20 +0200 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-28 07:23:40 -0400 |
commit | 8cc33aeaec2798c9ff5a3af23e361ee22fa2ba95 (patch) | |
tree | 61965212780847921f4312b2b17d72240ba82cd6 /Source/cmXCodeScheme.cxx | |
parent | ffefdb2c084e1e2d46c4d8133dd7aa7bcef79b85 (diff) | |
download | cmake-8cc33aeaec2798c9ff5a3af23e361ee22fa2ba95.tar.gz |
Replace several occurrences of empty string comparisons by string::empty()
Fix issues diagnosed by clang-tidy [readability-container-size-empty]
Signed-off-by: Matthias Maennich <matthias@maennich.net>
Diffstat (limited to 'Source/cmXCodeScheme.cxx')
-rw-r--r-- | Source/cmXCodeScheme.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmXCodeScheme.cxx b/Source/cmXCodeScheme.cxx index bca39af120..f460365e7a 100644 --- a/Source/cmXCodeScheme.cxx +++ b/Source/cmXCodeScheme.cxx @@ -223,7 +223,7 @@ std::string cmXCodeScheme::FindConfiguration(const std::string& name) // if (std::find(this->ConfigList.begin(), this->ConfigList.end(), name) == this->ConfigList.end() && - this->ConfigList.size() > 0) + !this->ConfigList.empty()) return this->ConfigList[0]; return name; |