diff options
author | Blake Oler <blake.oler@10gen.com> | 2017-09-11 16:05:43 -0400 |
---|---|---|
committer | Kyle Suarez <kyle.suarez@mongodb.com> | 2017-11-14 13:52:23 -0500 |
commit | acde99b058c6e23302bc849015ed5e90b15b19fc (patch) | |
tree | cc1775bd2272048d55c936b3f4c259931f8409d6 /src/mongo/db/matcher/schema/expression_internal_schema_object_match.h | |
parent | 4abdc7aff5cd5d0531c53b0ff784826e96700418 (diff) | |
download | mongo-acde99b058c6e23302bc849015ed5e90b15b19fc.tar.gz |
SERVER-30783 Move init() logic to MatchExpression constructors
Diffstat (limited to 'src/mongo/db/matcher/schema/expression_internal_schema_object_match.h')
-rw-r--r-- | src/mongo/db/matcher/schema/expression_internal_schema_object_match.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mongo/db/matcher/schema/expression_internal_schema_object_match.h b/src/mongo/db/matcher/schema/expression_internal_schema_object_match.h index ef328388c0b..776d35af6de 100644 --- a/src/mongo/db/matcher/schema/expression_internal_schema_object_match.h +++ b/src/mongo/db/matcher/schema/expression_internal_schema_object_match.h @@ -36,12 +36,7 @@ class InternalSchemaObjectMatchExpression final : public PathMatchExpression { public: static constexpr StringData kName = "$_internalSchemaObjectMatch"_sd; - InternalSchemaObjectMatchExpression() : PathMatchExpression(INTERNAL_SCHEMA_OBJECT_MATCH) {} - - Status init(std::unique_ptr<MatchExpression> expr, StringData path) { - _sub = std::move(expr); - return setPath(path); - } + InternalSchemaObjectMatchExpression(StringData path, std::unique_ptr<MatchExpression> expr); bool matchesSingleElement(const BSONElement& elem, MatchDetails* details = nullptr) const final; |