summaryrefslogtreecommitdiff
path: root/Source/cmXCodeScheme.cxx
diff options
context:
space:
mode:
authorMatthias Maennich <matthias@maennich.net>2017-09-20 23:53:14 +0200
committerBrad King <brad.king@kitware.com>2017-09-28 07:23:43 -0400
commit77f674be35717a6eb296246733885b5a7ddf95ec (patch)
tree308de087b0babb7799c8c99c4352faa158969012 /Source/cmXCodeScheme.cxx
parentf0bab294dcd3f2c4f3be5e491426b5eefb2a9aba (diff)
downloadcmake-77f674be35717a6eb296246733885b5a7ddf95ec.tar.gz
Fix some occurrences of readability-braces-around-statements
Fix issues diagnosed by clang-tidy [readability-braces-around-statements] Signed-off-by: Matthias Maennich <matthias@maennich.net>
Diffstat (limited to 'Source/cmXCodeScheme.cxx')
-rw-r--r--Source/cmXCodeScheme.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmXCodeScheme.cxx b/Source/cmXCodeScheme.cxx
index 29de35ea82..f1dce6420c 100644
--- a/Source/cmXCodeScheme.cxx
+++ b/Source/cmXCodeScheme.cxx
@@ -222,8 +222,9 @@ std::string cmXCodeScheme::FindConfiguration(const std::string& name)
//
if (std::find(this->ConfigList.begin(), this->ConfigList.end(), name) ==
this->ConfigList.end() &&
- !this->ConfigList.empty())
+ !this->ConfigList.empty()) {
return this->ConfigList[0];
+ }
return name;
}