summaryrefslogtreecommitdiffstats
path: root/searchcommon
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-07-23 15:36:39 +0200
committerHenning Baldersheim <balder@oath.com>2018-07-23 15:40:18 +0200
commit11ad8f66bc6c4cc40589eea7875ec3ae075d42f2 (patch)
tree86ac9c1013c3bc5774e6c26f0d99cb99a1722772 /searchcommon
parent6868e05b6890901d15f15bfb29544eb079854e6b (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.h2
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); }