diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-22 20:17:18 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-11-29 17:39:46 (GMT) |
commit | ccb5ecac0bb41b507d041548ea38f20f267b9f40 (patch) | |
tree | 917718e0699a91066c22a213217a5cafec23c2d2 | |
parent | 2381634e7f54d68f6af2dfd73bbdc06e988ad5fa (diff) | |
download | CMake-ccb5ecac0bb41b507d041548ea38f20f267b9f40.zip CMake-ccb5ecac0bb41b507d041548ea38f20f267b9f40.tar.gz CMake-ccb5ecac0bb41b507d041548ea38f20f267b9f40.tar.bz2 |
clang-tidy: fix `readability-const-return-type` lints
-rw-r--r-- | Source/cmVisualStudioSlnData.cxx | 4 | ||||
-rw-r--r-- | Source/cmVisualStudioSlnData.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmVisualStudioSlnData.cxx b/Source/cmVisualStudioSlnData.cxx index 8ed0ab8..4b6754e 100644 --- a/Source/cmVisualStudioSlnData.cxx +++ b/Source/cmVisualStudioSlnData.cxx @@ -20,7 +20,7 @@ std::string cmSlnProjectEntry::GetProjectConfiguration( return projectConfigurationMap[solutionConfiguration]; } -const cm::optional<cmSlnProjectEntry> cmSlnData::GetProjectByGUID( +cm::optional<cmSlnProjectEntry> cmSlnData::GetProjectByGUID( const std::string& projectGUID) const { auto it(ProjectsByGUID.find(projectGUID)); @@ -30,7 +30,7 @@ const cm::optional<cmSlnProjectEntry> cmSlnData::GetProjectByGUID( return cm::nullopt; } -const cm::optional<cmSlnProjectEntry> cmSlnData::GetProjectByName( +cm::optional<cmSlnProjectEntry> cmSlnData::GetProjectByName( const std::string& projectName) const { auto it(ProjectNameIndex.find(projectName)); diff --git a/Source/cmVisualStudioSlnData.h b/Source/cmVisualStudioSlnData.h index 3188635..5f03895 100644 --- a/Source/cmVisualStudioSlnData.h +++ b/Source/cmVisualStudioSlnData.h @@ -56,10 +56,10 @@ public: minimumVisualStudioVersion = version; } - const cm::optional<cmSlnProjectEntry> GetProjectByGUID( + cm::optional<cmSlnProjectEntry> GetProjectByGUID( const std::string& projectGUID) const; - const cm::optional<cmSlnProjectEntry> GetProjectByName( + cm::optional<cmSlnProjectEntry> GetProjectByName( const std::string& projectName) const; std::vector<cmSlnProjectEntry> GetProjects() const; |