diff options
author | Brad King <brad.king@kitware.com> | 2019-09-12 13:15:09 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-09-12 13:15:38 (GMT) |
commit | 1a1508c8b840ae016dc8db9da6be4cbe59d5f1aa (patch) | |
tree | 0d43865e3fc9e04870c6d7e1360ee81d1da1a68c /Source/cmFileAPICodemodel.cxx | |
parent | d83bff86409c0e414046d2aeb75946037e0d2de3 (diff) | |
parent | d25a5a7ec91bfa072d3cf1a302830a54506c88c0 (diff) | |
download | CMake-1a1508c8b840ae016dc8db9da6be4cbe59d5f1aa.zip CMake-1a1508c8b840ae016dc8db9da6be4cbe59d5f1aa.tar.gz CMake-1a1508c8b840ae016dc8db9da6be4cbe59d5f1aa.tar.bz2 |
Merge topic 'modernize-use-auto'
d25a5a7ec9 clang-tidy: modernize-use-auto
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3783
Diffstat (limited to 'Source/cmFileAPICodemodel.cxx')
-rw-r--r-- | Source/cmFileAPICodemodel.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmFileAPICodemodel.cxx b/Source/cmFileAPICodemodel.cxx index 805da81..e33ba2d 100644 --- a/Source/cmFileAPICodemodel.cxx +++ b/Source/cmFileAPICodemodel.cxx @@ -827,8 +827,7 @@ void Target::ProcessLanguage(std::string const& lang) Json::ArrayIndex Target::AddSourceGroup(cmSourceGroup* sg, Json::ArrayIndex si) { - std::unordered_map<cmSourceGroup const*, Json::ArrayIndex>::iterator i = - this->SourceGroupsMap.find(sg); + auto i = this->SourceGroupsMap.find(sg); if (i == this->SourceGroupsMap.end()) { auto sgIndex = static_cast<Json::ArrayIndex>(this->SourceGroups.size()); i = this->SourceGroupsMap.emplace(sg, sgIndex).first; |