diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-11-18 12:41:20 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-11-18 12:41:20 +0000 |
commit | e9364c813f0e9ba95bdea39b62204c67200c0285 (patch) | |
tree | b1c7a347ed0c72e63a9803f20b5b2696a51a51ee /searchcommon | |
parent | 4404d0bb08ba41719ebcc55813cfec10e6e48bde (diff) |
no need to copy by value here
Diffstat (limited to 'searchcommon')
-rw-r--r-- | searchcommon/src/vespa/searchcommon/attribute/config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/config.h b/searchcommon/src/vespa/searchcommon/attribute/config.h index 822a4e4e028..8df7f29590b 100644 --- a/searchcommon/src/vespa/searchcommon/attribute/config.h +++ b/searchcommon/src/vespa/searchcommon/attribute/config.h @@ -35,7 +35,7 @@ public: bool fastSearch() const { return _fastSearch; } bool huge() const { return _huge; } const PredicateParams &predicateParams() const { return _predicateParams; } - vespalib::eval::ValueType tensorType() const { return _tensorType; } + const vespalib::eval::ValueType & tensorType() const { return _tensorType; } DistanceMetric distance_metric() const { return _distance_metric; } const std::optional<HnswIndexParams>& hnsw_index_params() const { return _hnsw_index_params; } |