diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-05-23 12:43:07 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-05-23 12:43:22 +0000 |
commit | f8ca0972010fd02c4ae821708fecf62203f2ddac (patch) | |
tree | 6db8289498565bc6055d6f938f7b27d7a40596d5 | |
parent | 3a3dbd5c7c2fc19520917f46205c9f987972f5b8 (diff) |
Inline trivial constructors
-rw-r--r-- | searchlib/src/vespa/searchlib/attribute/enumcomparator.cpp | 12 | ||||
-rw-r--r-- | searchlib/src/vespa/searchlib/attribute/enumcomparator.h | 8 |
2 files changed, 6 insertions, 14 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/enumcomparator.cpp b/searchlib/src/vespa/searchlib/attribute/enumcomparator.cpp index 0f52b64ede0..5a5702f50e8 100644 --- a/searchlib/src/vespa/searchlib/attribute/enumcomparator.cpp +++ b/searchlib/src/vespa/searchlib/attribute/enumcomparator.cpp @@ -6,18 +6,6 @@ namespace search { template <typename EntryT> -EnumStoreComparator<EntryT>::EnumStoreComparator(const DataStoreType& data_store, const EntryT& fallback_value) - : ParentType(data_store, fallback_value) -{ -} - -template <typename EntryT> -EnumStoreComparator<EntryT>::EnumStoreComparator(const DataStoreType& data_store) - : ParentType(data_store) -{ -} - -template <typename EntryT> bool EnumStoreComparator<EntryT>::equal_helper(const EntryT& lhs, const EntryT& rhs) { diff --git a/searchlib/src/vespa/searchlib/attribute/enumcomparator.h b/searchlib/src/vespa/searchlib/attribute/enumcomparator.h index 5df85cd1c57..546ac82e389 100644 --- a/searchlib/src/vespa/searchlib/attribute/enumcomparator.h +++ b/searchlib/src/vespa/searchlib/attribute/enumcomparator.h @@ -18,8 +18,12 @@ public: using ParentType = vespalib::datastore::UniqueStoreComparator<EntryT, IEnumStore::InternalIndex>; using DataStoreType = typename ParentType::DataStoreType; - EnumStoreComparator(const DataStoreType& data_store, const EntryT& fallback_value); - EnumStoreComparator(const DataStoreType& data_store); + EnumStoreComparator(const DataStoreType& data_store, const EntryT& fallback_value) + : ParentType(data_store, fallback_value) + {} + EnumStoreComparator(const DataStoreType& data_store) + : ParentType(data_store) + {} static bool equal_helper(const EntryT& lhs, const EntryT& rhs); }; |