From ccb5ecac0bb41b507d041548ea38f20f267b9f40 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 22 Nov 2022 15:17:18 -0500 Subject: clang-tidy: fix `readability-const-return-type` lints --- Source/cmVisualStudioSlnData.cxx | 4 ++-- 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 cmSlnData::GetProjectByGUID( +cm::optional cmSlnData::GetProjectByGUID( const std::string& projectGUID) const { auto it(ProjectsByGUID.find(projectGUID)); @@ -30,7 +30,7 @@ const cm::optional cmSlnData::GetProjectByGUID( return cm::nullopt; } -const cm::optional cmSlnData::GetProjectByName( +cm::optional 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 GetProjectByGUID( + cm::optional GetProjectByGUID( const std::string& projectGUID) const; - const cm::optional GetProjectByName( + cm::optional GetProjectByName( const std::string& projectName) const; std::vector GetProjects() const; -- cgit v0.12