diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-22 18:56:03 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-29 17:39:29 (GMT) |
commit | c61ece5c40a30e99e0f3a45c76dd802a14e4db96 (patch) | |
tree | fb42fb1dfd471174c1bb40a6c4eccd813fee499e /Source/cmIDEOptions.cxx | |
parent | 64c0702f91fb1e9ff8f6afd55d8fc79003426d6b (diff) | |
download | CMake-c61ece5c40a30e99e0f3a45c76dd802a14e4db96.zip CMake-c61ece5c40a30e99e0f3a45c76dd802a14e4db96.tar.gz CMake-c61ece5c40a30e99e0f3a45c76dd802a14e4db96.tar.bz2 |
clang-tidy: fix `modernize-use-auto` lints
Diffstat (limited to 'Source/cmIDEOptions.cxx')
-rw-r--r-- | Source/cmIDEOptions.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmIDEOptions.cxx b/Source/cmIDEOptions.cxx index bb36db3..5a22697 100644 --- a/Source/cmIDEOptions.cxx +++ b/Source/cmIDEOptions.cxx @@ -246,8 +246,7 @@ bool cmIDEOptions::HasFlag(std::string const& flag) const const char* cmIDEOptions::GetFlag(std::string const& flag) const { // This method works only for single-valued flags! - std::map<std::string, FlagValue>::const_iterator i = - this->FlagMap.find(flag); + auto i = this->FlagMap.find(flag); if (i != this->FlagMap.cend() && i->second.size() == 1) { return i->second[0].c_str(); } |