[ledger] Use const reference in B-Tree helper function.

Test: Existing tests still pass
Change-Id: Idbe73b0c377e53e60ac9ea94c991faa7169b2985
diff --git a/bin/ledger/storage/impl/btree/internal_helper.cc b/bin/ledger/storage/impl/btree/internal_helper.cc
index 072b4b6..aae70e0 100644
--- a/bin/ledger/storage/impl/btree/internal_helper.cc
+++ b/bin/ledger/storage/impl/btree/internal_helper.cc
@@ -12,7 +12,7 @@
 // Returns the index of |entries| that contains |key|, or the first entry that
 // has key greather than |key|. In the second case, the key, if present, will
 // be found in the children at the returned index.
-size_t GetEntryOrChildIndex(const std::vector<Entry> entries,
+size_t GetEntryOrChildIndex(const std::vector<Entry>& entries,
                             fxl::StringView key) {
   auto lower = std::lower_bound(
       entries.begin(), entries.end(), key,
diff --git a/bin/ledger/storage/impl/btree/internal_helper.h b/bin/ledger/storage/impl/btree/internal_helper.h
index 674f5eb..16f00b6 100644
--- a/bin/ledger/storage/impl/btree/internal_helper.h
+++ b/bin/ledger/storage/impl/btree/internal_helper.h
@@ -25,7 +25,8 @@
 // Returns the index of |entries| that contains |key|, or the first entry that
 // has a key greather than |key|. In the second case, the key, if present, will
 // be found in the children at the returned index.
-size_t GetEntryOrChildIndex(std::vector<Entry> entries, fxl::StringView key);
+size_t GetEntryOrChildIndex(const std::vector<Entry>& entries,
+                            fxl::StringView key);
 
 }  // namespace btree
 }  // namespace storage