diff options
Diffstat (limited to 'src/mongo/db/update/update_object_node.h')
-rw-r--r-- | src/mongo/db/update/update_object_node.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/update/update_object_node.h b/src/mongo/db/update/update_object_node.h index d7f2e56e9de..8c347968e74 100644 --- a/src/mongo/db/update/update_object_node.h +++ b/src/mongo/db/update/update_object_node.h @@ -39,6 +39,7 @@ #include "mongo/bson/bsonelement.h" #include "mongo/db/matcher/expression_with_placeholder.h" #include "mongo/db/update/modifier_table.h" +#include "mongo/db/update/path_support.h" #include "mongo/db/update/update_internal_node.h" #include "mongo/stdx/unordered_map.h" @@ -126,12 +127,12 @@ public: visitor->visit(this); } - const std::map<std::string, clonable_ptr<UpdateNode>>& getChildren() const { + const auto& getChildren() const { return _children; } private: - std::map<std::string, clonable_ptr<UpdateNode>> _children; + std::map<std::string, clonable_ptr<UpdateNode>, pathsupport::cmpPathsAndArrayIndexes> _children; clonable_ptr<UpdateNode> _positionalChild; // When calling apply() causes us to merge an element of '_children' with '_positionalChild', we |