mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 10:49:01 +08:00
Pass by reference
This commit is contained in:
parent
88b5791b0b
commit
6e29b7b8d4
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user