From 03333b45e6cc2efcbd0eae85bfc68e5fcc9b74e8 Mon Sep 17 00:00:00 2001 From: Geir Storli Date: Wed, 22 Feb 2017 13:08:15 +0000 Subject: Add using statement for shared ptr (and change 'typedef' to 'using'). --- .../src/vespa/searchcommon/attribute/iattributevector.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h b/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h index 28f7f7df061..8e17e697d0e 100644 --- a/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h +++ b/searchcommon/src/vespa/searchcommon/attribute/iattributevector.h @@ -45,14 +45,15 @@ public: class IAttributeVector { public: - typedef uint32_t DocId; - typedef uint32_t EnumHandle; - typedef int64_t largeint_t; - typedef WeightedType WeightedFloat; - typedef WeightedType WeightedInt; - typedef WeightedType WeightedEnum; - typedef WeightedType WeightedConstChar; - typedef WeightedType WeightedString; + using SP = std::shared_ptr; + using DocId = uint32_t; + using EnumHandle = uint32_t; + using largeint_t = int64_t; + using WeightedFloat = WeightedType; + using WeightedInt = WeightedType; + using WeightedEnum = WeightedType; + using WeightedConstChar = WeightedType; + using WeightedString = WeightedType; /** * Returns the name of this attribute vector. -- cgit v1.2.3