diff options
Diffstat (limited to 'src/mongo/db/pipeline/document_source_densify.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_densify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_densify.cpp b/src/mongo/db/pipeline/document_source_densify.cpp index d72e17571fe..2fd25d5c3ca 100644 --- a/src/mongo/db/pipeline/document_source_densify.cpp +++ b/src/mongo/db/pipeline/document_source_densify.cpp @@ -60,7 +60,7 @@ RangeStatement RangeStatement::parse(RangeSpec spec) { "The step parameter in a range statement must be a whole number when " "densifying a date range", step.integral64Bit()); - return optional<TimeUnit>(parseTimeUnit(unit.get())); + return optional<TimeUnit>(parseTimeUnit(unit.value())); } else { return optional<TimeUnit>(boost::none); } @@ -292,7 +292,7 @@ Document DocumentSourceInternalDensify::DocGenerator::getNextDocument() { _state = GeneratorState::kDone; // If _finalDoc is boost::none we can't be in this state. tassert(5832800, "DocGenerator expected _finalDoc, found boost::none", _finalDoc); - return _finalDoc.get(); + return _finalDoc.value(); } // Assume all types have been checked at this point and we are in a valid state. DensifyValue valueToAdd = _min; |