diff options
-rw-r--r-- | bpkg/package.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bpkg/package.cxx b/bpkg/package.cxx index 7768665..8c3fd19 100644 --- a/bpkg/package.cxx +++ b/bpkg/package.cxx @@ -191,7 +191,7 @@ namespace bpkg for (shared_ptr<available_package> ap: pointer_result (apr)) { - for (const shared_ptr<repository_fragment> r: rps) + for (const shared_ptr<repository_fragment>& r: rps) { if (shared_ptr<repository_fragment> rf = filter (r, ap, prereq)) { @@ -214,7 +214,7 @@ namespace bpkg for (shared_ptr<available_package> ap: pointer_result (apr)) { - for (const shared_ptr<repository_fragment> r: rps) + for (const shared_ptr<repository_fragment>& r: rps) { if (shared_ptr<repository_fragment> rf = filter (r, ap, prereq)) return result (move (ap), move (rf)); |