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/cmVisualStudioSlnData.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/cmVisualStudioSlnData.cxx')
-rw-r--r-- | Source/cmVisualStudioSlnData.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/cmVisualStudioSlnData.cxx b/Source/cmVisualStudioSlnData.cxx index 739183f..da5a56c 100644 --- a/Source/cmVisualStudioSlnData.cxx +++ b/Source/cmVisualStudioSlnData.cxx @@ -23,7 +23,7 @@ std::string cmSlnProjectEntry::GetProjectConfiguration( const cm::optional<cmSlnProjectEntry> cmSlnData::GetProjectByGUID( const std::string& projectGUID) const { - ProjectStorage::const_iterator it(ProjectsByGUID.find(projectGUID)); + auto it(ProjectsByGUID.find(projectGUID)); if (it != ProjectsByGUID.end()) return it->second; else @@ -33,7 +33,7 @@ const cm::optional<cmSlnProjectEntry> cmSlnData::GetProjectByGUID( const cm::optional<cmSlnProjectEntry> cmSlnData::GetProjectByName( const std::string& projectName) const { - ProjectStringIndex::const_iterator it(ProjectNameIndex.find(projectName)); + auto it(ProjectNameIndex.find(projectName)); if (it != ProjectNameIndex.end()) return it->second->second; else @@ -42,8 +42,7 @@ const cm::optional<cmSlnProjectEntry> cmSlnData::GetProjectByName( std::vector<cmSlnProjectEntry> cmSlnData::GetProjects() const { - ProjectStringIndex::const_iterator it(this->ProjectNameIndex.begin()), - itEnd(this->ProjectNameIndex.end()); + auto it(this->ProjectNameIndex.begin()), itEnd(this->ProjectNameIndex.end()); std::vector<cmSlnProjectEntry> result; for (; it != itEnd; ++it) result.push_back(it->second->second); @@ -54,7 +53,7 @@ cmSlnProjectEntry* cmSlnData::AddProject( const std::string& projectGUID, const std::string& projectName, const std::string& projectRelativePath) { - ProjectStorage::iterator it(ProjectsByGUID.find(projectGUID)); + auto it(ProjectsByGUID.find(projectGUID)); if (it != ProjectsByGUID.end()) return nullptr; it = ProjectsByGUID |