diff options
Diffstat (limited to 'src/mongo/db/exec/text_or.cpp')
-rw-r--r-- | src/mongo/db/exec/text_or.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/exec/text_or.cpp b/src/mongo/db/exec/text_or.cpp index 41c57530a19..bbdbabdd4d0 100644 --- a/src/mongo/db/exec/text_or.cpp +++ b/src/mongo/db/exec/text_or.cpp @@ -297,7 +297,7 @@ public: return getObj(); } - virtual ElementIterator* allocateIterator(const ElementPath* path) const { + ElementIterator* allocateIterator(const ElementPath* path) const final { WorkingSetMember* member = _ws->get(_id); if (!member->hasObj()) { // Try to look in the key. @@ -323,7 +323,7 @@ public: return new BSONElementIterator(path, getObj()); } - virtual void releaseIterator(ElementIterator* iterator) const { + void releaseIterator(ElementIterator* iterator) const final { delete iterator; } |