diff options
Diffstat (limited to 'streamingvisitors/src/vespa/searchvisitor/querywrapper.h')
-rw-r--r-- | streamingvisitors/src/vespa/searchvisitor/querywrapper.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/streamingvisitors/src/vespa/searchvisitor/querywrapper.h b/streamingvisitors/src/vespa/searchvisitor/querywrapper.h index eb8d15f8408..94ba63ef569 100644 --- a/streamingvisitors/src/vespa/searchvisitor/querywrapper.h +++ b/streamingvisitors/src/vespa/searchvisitor/querywrapper.h @@ -30,8 +30,8 @@ public: public: Term() : - _term(NULL), - _parent(NULL), + _term(nullptr), + _parent(nullptr), _index(0) { } @@ -44,9 +44,9 @@ public: search::QueryTerm * getTerm() { return _term; } search::PhraseQueryNode * getParent() { return _parent; } size_t getIndex() const { return _index; } - bool isPhraseTerm() const { return _parent != NULL; } + bool isPhraseTerm() const { return _parent != nullptr; } bool isFirstPhraseTerm() const { return isPhraseTerm() && getIndex() == 0; } - size_t getPosAdjust() const { return _parent != NULL ? _parent->width() - 1 : 0; } + size_t getPosAdjust() const { return _parent != nullptr ? _parent->width() - 1 : 0; } }; typedef std::vector<Term> TermList; |