diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-07-30 12:54:18 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-07-30 13:00:40 +0200 |
commit | fba625e9a06308364f0c0e6728a9d2195b9354a0 (patch) | |
tree | f26a1979f4c5733331c11832a0256234a4a8b38b /searchcommon | |
parent | b53df1fcba1dae72a6e78c7892bc7b51408d4348 (diff) |
Use proper scope for enum constants.
Diffstat (limited to 'searchcommon')
-rw-r--r-- | searchcommon/src/vespa/searchcommon/common/schemaconfigurer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/searchcommon/src/vespa/searchcommon/common/schemaconfigurer.cpp b/searchcommon/src/vespa/searchcommon/common/schemaconfigurer.cpp index a46f99d158d..3750f8d1d62 100644 --- a/searchcommon/src/vespa/searchcommon/common/schemaconfigurer.cpp +++ b/searchcommon/src/vespa/searchcommon/common/schemaconfigurer.cpp @@ -28,9 +28,9 @@ Schema::DataType convertIndexDataType(const IndexschemaConfig::Indexfield::Datatype &type) { switch (type) { - case IndexschemaConfig::Indexfield::STRING: + case IndexschemaConfig::Indexfield::Datatype::STRING: return DataType::STRING; - case IndexschemaConfig::Indexfield::INT64: + case IndexschemaConfig::Indexfield::Datatype::INT64: return DataType::INT64; } return DataType::STRING; @@ -41,11 +41,11 @@ Schema::CollectionType convertIndexCollectionType(const IndexschemaConfig::Indexfield::Collectiontype &type) { switch (type) { - case IndexschemaConfig::Indexfield::SINGLE: + case IndexschemaConfig::Indexfield::Collectiontype::SINGLE: return CollectionType::SINGLE; - case IndexschemaConfig::Indexfield::ARRAY: + case IndexschemaConfig::Indexfield::Collectiontype::ARRAY: return CollectionType::ARRAY; - case IndexschemaConfig::Indexfield::WEIGHTEDSET: + case IndexschemaConfig::Indexfield::Collectiontype::WEIGHTEDSET: return CollectionType::WEIGHTEDSET; } return CollectionType::SINGLE; |