diff options
author | Geir Storli <geirst@verizonmedia.com> | 2019-09-04 14:51:41 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2019-09-04 14:51:41 +0000 |
commit | dd34ad6389712acf165cf4e83cf4901577e06218 (patch) | |
tree | c45c0654147c72ae500ce822cba1232bdf4b7476 /vespalib | |
parent | 46aa638f210d1d71c907e2ed9a3911c60dc26ea0 (diff) |
Pass ConstArrayRef by value.
Diffstat (limited to 'vespalib')
3 files changed, 3 insertions, 3 deletions
diff --git a/vespalib/src/vespa/vespalib/datastore/i_unique_store_dictionary.h b/vespalib/src/vespa/vespalib/datastore/i_unique_store_dictionary.h index 25480176143..3299529032a 100644 --- a/vespalib/src/vespa/vespalib/datastore/i_unique_store_dictionary.h +++ b/vespalib/src/vespa/vespalib/datastore/i_unique_store_dictionary.h @@ -46,7 +46,7 @@ public: virtual uint32_t get_num_uniques() const = 0; virtual vespalib::MemoryUsage get_memory_usage() const = 0; virtual void build(const std::vector<EntryRef> &refs, const std::vector<uint32_t> &ref_counts, std::function<void(EntryRef)> hold) = 0; - virtual void build(const vespalib::ConstArrayRef<EntryRef>& refs) = 0; + virtual void build(vespalib::ConstArrayRef<EntryRef> refs) = 0; virtual void build_with_payload(const std::vector<EntryRef>& refs, const std::vector<uint32_t>& payloads) = 0; virtual std::unique_ptr<ReadSnapshot> get_read_snapshot() const = 0; virtual EntryRef get_frozen_root() const = 0; diff --git a/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.h b/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.h index d5150aae236..21bc796b52b 100644 --- a/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.h +++ b/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.h @@ -48,7 +48,7 @@ public: uint32_t get_num_uniques() const override; vespalib::MemoryUsage get_memory_usage() const override; void build(const std::vector<EntryRef> &refs, const std::vector<uint32_t> &ref_counts, std::function<void(EntryRef)> hold) override; - void build(const vespalib::ConstArrayRef<EntryRef>& refs) override; + void build(vespalib::ConstArrayRef<EntryRef> refs) override; void build_with_payload(const std::vector<EntryRef>& refs, const std::vector<uint32_t>& payloads) override; std::unique_ptr<ReadSnapshot> get_read_snapshot() const override; EntryRef get_frozen_root() const override; diff --git a/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.hpp b/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.hpp index 896970ee3f1..02bf8ac14e6 100644 --- a/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.hpp +++ b/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.hpp @@ -177,7 +177,7 @@ UniqueStoreDictionary<DictionaryT, ParentT>::build(const std::vector<EntryRef> & template <typename DictionaryT, typename ParentT> void -UniqueStoreDictionary<DictionaryT, ParentT>::build(const vespalib::ConstArrayRef<EntryRef>& refs) +UniqueStoreDictionary<DictionaryT, ParentT>::build(vespalib::ConstArrayRef<EntryRef> refs) { typename DictionaryType::Builder builder(_dict.getAllocator()); for (const auto& ref : refs) { |