summaryrefslogtreecommitdiffstats
path: root/Source/cmFindCommon.cxx
diff options
context:
space:
mode:
authorCengizhan Pasaoglu <cengizhanpasaoglu@gmail.com>2020-10-17 23:00:29 (GMT)
committerCengizhan Pasaoglu <cengizhanpasaoglu@gmail.com>2020-10-19 21:04:04 (GMT)
commitbd705788f67741df88bf153825a5943b4b518818 (patch)
tree356596cc5ca5d3f2ad2de7954257903301143bd8 /Source/cmFindCommon.cxx
parentc05e561474c422d23b9f1d29ccb5ceea0037477b (diff)
downloadCMake-bd705788f67741df88bf153825a5943b4b518818.zip
CMake-bd705788f67741df88bf153825a5943b4b518818.tar.gz
CMake-bd705788f67741df88bf153825a5943b4b518818.tar.bz2
Constify some code as suggested by clang-tidy
Diffstat (limited to 'Source/cmFindCommon.cxx')
-rw-r--r--Source/cmFindCommon.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindCommon.cxx b/Source/cmFindCommon.cxx
index dee91d7..7952336 100644
--- a/Source/cmFindCommon.cxx
+++ b/Source/cmFindCommon.cxx
@@ -182,7 +182,7 @@ void cmFindCommon::SelectDefaultSearchModes()
{ this->NoCMakeSystemPath, "CMAKE_FIND_USE_CMAKE_SYSTEM_PATH" } }
};
- for (auto& path : search_paths) {
+ for (auto const& path : search_paths) {
cmProp def = this->Makefile->GetDefinition(path.second);
if (def) {
path.first = !cmIsOn(*def);