diff options
author | Tor Egge <Tor.Egge@oath.com> | 2018-09-06 13:23:19 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@oath.com> | 2018-09-06 13:23:19 +0000 |
commit | b14effe6caee48def45e4040fe3306da422c3156 (patch) | |
tree | b39b24a016b70f83f2157b072f7c9d3c6d7d5e4c /searchlib | |
parent | b29f5980fee9ff1bbe2614dc9ff89340cb27978a (diff) |
Use more explicit template argument name: KT -> KeyType.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/expression/attribute_keyed_node.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/searchlib/src/vespa/searchlib/expression/attribute_keyed_node.cpp b/searchlib/src/vespa/searchlib/expression/attribute_keyed_node.cpp index a3ebea292b0..fde9e4a0b3c 100644 --- a/searchlib/src/vespa/searchlib/expression/attribute_keyed_node.cpp +++ b/searchlib/src/vespa/searchlib/expression/attribute_keyed_node.cpp @@ -42,10 +42,10 @@ public: uint32_t handle(DocId) override { return noKeyIdx(); } }; -template <typename KT> -KT convertKey(const IAttributeVector &, const vespalib::string &key) +template <typename KeyType> +KeyType convertKey(const IAttributeVector &, const vespalib::string &key) { - KT ret; + KeyType ret; vespalib::asciistream is(key); is >> ret; return ret; @@ -67,17 +67,17 @@ EnumHandle convertKey<EnumHandle>(const IAttributeVector &attribute, const vespa return ret; } -template <typename T, typename KT = T> +template <typename T, typename KeyType = T> class KeyHandlerT : public AttributeKeyedNode::KeyHandler { AttributeContent<T> _values; - KT _key; + KeyType _key; public: KeyHandlerT(const IAttributeVector &attribute, const vespalib::string &key) : KeyHandler(attribute), _values(), - _key(convertKey<KT>(attribute, key)) + _key(convertKey<KeyType>(attribute, key)) { } ~KeyHandlerT() override; @@ -92,8 +92,8 @@ public: } }; -template <typename T, typename KT> -KeyHandlerT<T,KT>::~KeyHandlerT() +template <typename T, typename KeyType> +KeyHandlerT<T,KeyType>::~KeyHandlerT() { } |