Pass by reference
MODIFY
include/vcpkg_Input.h
include/vcpkg_Input.h
@@ -11,5 +11,5 @@ namespace vcpkg::Input
void check_triplet(const triplet& t, const vcpkg_paths& paths);
- void check_triplets(std::vector<package_spec> triplets, const vcpkg_paths& paths);
+ void check_triplets(const std::vector<package_spec>& triplets, const vcpkg_paths& paths);
}

MODIFY
src/vcpkg_Input.cpp
src/vcpkg_Input.cpp
@@ -42,7 +42,7 @@ namespace vcpkg::Input
}
}
- void check_triplets(std::vector<package_spec> triplets, const vcpkg_paths& paths)
+ void check_triplets(const std::vector<package_spec>& triplets, const vcpkg_paths& paths)
{
for (const package_spec& spec : triplets)
{

Pass by reference