Pass by reference

This commit is contained in:
Alexander Karatarakis 2017-01-05 14:21:09 -08:00
parent 88b5791b0b
commit 6e29b7b8d4
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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)
{