aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toolsrc/include/triplet.h2
-rw-r--r--toolsrc/src/triplet.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/toolsrc/include/triplet.h b/toolsrc/include/triplet.h
index 0c42f2ec7..23c1ea404 100644
--- a/toolsrc/include/triplet.h
+++ b/toolsrc/include/triplet.h
@@ -20,7 +20,7 @@ namespace vcpkg
std::string system() const;
- bool validate(const vcpkg_paths& paths);
+ bool validate(const vcpkg_paths& paths) const;
};
bool operator==(const triplet& left, const triplet& right);
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;