diff options
Diffstat (limited to 'src/mongo/db/matcher/expression_where_base.cpp')
| -rw-r--r-- | src/mongo/db/matcher/expression_where_base.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/matcher/expression_where_base.cpp b/src/mongo/db/matcher/expression_where_base.cpp index b25a8febccf..30148f9a42b 100644 --- a/src/mongo/db/matcher/expression_where_base.cpp +++ b/src/mongo/db/matcher/expression_where_base.cpp @@ -46,10 +46,8 @@ void WhereMatchExpressionBase::debugString(StringBuilder& debug, int indentation debug << "code: " << getCode() << "\n"; } -void WhereMatchExpressionBase::serialize(BSONObjBuilder* out, - const SerializationOptions& opts, - bool includePath) const { - opts.appendLiteral(out, "$where", BSONCode(getCode())); +void WhereMatchExpressionBase::serialize(BSONObjBuilder* out, bool includePath) const { + out->appendCode("$where", getCode()); } bool WhereMatchExpressionBase::equivalent(const MatchExpression* other) const { |
