summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_replace_root.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/document_source_replace_root.h')
-rw-r--r--src/mongo/db/pipeline/document_source_replace_root.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_replace_root.h b/src/mongo/db/pipeline/document_source_replace_root.h
index 16c76713d87..5f81375d657 100644
--- a/src/mongo/db/pipeline/document_source_replace_root.h
+++ b/src/mongo/db/pipeline/document_source_replace_root.h
@@ -63,7 +63,7 @@ public:
Document serializeTransformation(boost::optional<ExplainOptions::Verbosity> explain,
SerializationOptions options = {}) const final {
- return Document{{"newRoot", _newRoot->serialize(static_cast<bool>(explain))}};
+ return Document{{"newRoot", _newRoot->serialize(explain)}};
}
DepsTracker::State addDependencies(DepsTracker* deps) const final {