diff options
author | Henning Baldersheim <balder@oath.com> | 2018-07-23 15:36:39 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-07-23 15:40:18 +0200 |
commit | 11ad8f66bc6c4cc40589eea7875ec3ae075d42f2 (patch) | |
tree | 86ac9c1013c3bc5774e6c26f0d99cb99a1722772 /searchcommon | |
parent | 6868e05b6890901d15f15bfb29544eb079854e6b (diff) |
- Do not follow the nullptr.
- Do not have an interface return a reference when it might refer a nullptr...
Diffstat (limited to 'searchcommon')
-rw-r--r-- | searchcommon/src/vespa/searchcommon/attribute/i_search_context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h b/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h index d18c4840009..05ccbc7628e 100644 --- a/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h +++ b/searchcommon/src/vespa/searchcommon/attribute/i_search_context.h @@ -48,7 +48,7 @@ public: virtual bool valid() const = 0; virtual Int64Range getAsIntegerTerm() const = 0; - virtual const QueryTermBase &queryTerm() const = 0; + virtual const QueryTermBase * queryTerm() const = 0; virtual const vespalib::string &attributeName() const = 0; int32_t find(DocId docId, int32_t elementId, int32_t &weight) const { return onFind(docId, elementId, weight); } |