diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-27 01:48:51 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-27 01:48:51 -0700 |
| commit | 687ac42cdd39fece9ed816836c049607f8d1223b (patch) | |
| tree | db4daa729701c1c7383cd2eddbb8d5e99dfca048 /toolsrc/src/triplet.cpp | |
| parent | a098ecad0316b627a1fd56bfe39119f92702aa5c (diff) | |
| download | vcpkg-687ac42cdd39fece9ed816836c049607f8d1223b.tar.gz vcpkg-687ac42cdd39fece9ed816836c049607f8d1223b.zip | |
Make member function const
Diffstat (limited to 'toolsrc/src/triplet.cpp')
| -rw-r--r-- | toolsrc/src/triplet.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/src/triplet.cpp b/toolsrc/src/triplet.cpp index 14f19d5cd..4270c458d 100644 --- a/toolsrc/src/triplet.cpp +++ b/toolsrc/src/triplet.cpp @@ -58,13 +58,13 @@ namespace vcpkg Checks::exit_with_message("Unknown system: %s", value); } - bool triplet::validate(const vcpkg_paths & paths) + bool triplet::validate(const vcpkg_paths& paths) const { auto it = fs::directory_iterator(paths.triplets); - for(; it != fs::directory_iterator(); ++it) + for (; it != fs::directory_iterator(); ++it) { std::string triplet_file_name = it->path().stem().generic_u8string(); - if(value == triplet_file_name) // TODO: fuzzy compare + if (value == triplet_file_name) // TODO: fuzzy compare { //value = triplet_file_name; // NOTE: uncomment when implementing fuzzy compare return true; |
