From c36f9ecb91e49da7e637863889804fc4e6c6c05e Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Mon, 10 Jun 2019 01:21:01 -0400 Subject: SERVER-39339 Remove `stdx/memory.h` --- src/mongo/db/update/modifier_table.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/mongo/db/update/modifier_table.cpp') diff --git a/src/mongo/db/update/modifier_table.cpp b/src/mongo/db/update/modifier_table.cpp index e46a7fb2de4..ed054989547 100644 --- a/src/mongo/db/update/modifier_table.cpp +++ b/src/mongo/db/update/modifier_table.cpp @@ -29,6 +29,7 @@ #include "mongo/db/update/modifier_table.h" +#include #include #include @@ -48,7 +49,6 @@ #include "mongo/db/update/rename_node.h" #include "mongo/db/update/set_node.h" #include "mongo/db/update/unset_node.h" -#include "mongo/stdx/memory.h" namespace mongo { @@ -138,37 +138,37 @@ ModifierType getType(StringData typeStr) { std::unique_ptr makeUpdateLeafNode(ModifierType modType) { switch (modType) { case MOD_ADD_TO_SET: - return stdx::make_unique(); + return std::make_unique(); case MOD_BIT: - return stdx::make_unique(); + return std::make_unique(); case MOD_CONFLICT_PLACEHOLDER: - return stdx::make_unique(); + return std::make_unique(); case MOD_CURRENTDATE: - return stdx::make_unique(); + return std::make_unique(); case MOD_INC: - return stdx::make_unique(ArithmeticNode::ArithmeticOp::kAdd); + return std::make_unique(ArithmeticNode::ArithmeticOp::kAdd); case MOD_MAX: - return stdx::make_unique(CompareNode::CompareMode::kMax); + return std::make_unique(CompareNode::CompareMode::kMax); case MOD_MIN: - return stdx::make_unique(CompareNode::CompareMode::kMin); + return std::make_unique(CompareNode::CompareMode::kMin); case MOD_MUL: - return stdx::make_unique(ArithmeticNode::ArithmeticOp::kMultiply); + return std::make_unique(ArithmeticNode::ArithmeticOp::kMultiply); case MOD_POP: - return stdx::make_unique(); + return std::make_unique(); case MOD_PULL: - return stdx::make_unique(); + return std::make_unique(); case MOD_PULL_ALL: - return stdx::make_unique(); + return std::make_unique(); case MOD_PUSH: - return stdx::make_unique(); + return std::make_unique(); case MOD_RENAME: - return stdx::make_unique(); + return std::make_unique(); case MOD_SET: - return stdx::make_unique(); + return std::make_unique(); case MOD_SET_ON_INSERT: - return stdx::make_unique(UpdateNode::Context::kInsertOnly); + return std::make_unique(UpdateNode::Context::kInsertOnly); case MOD_UNSET: - return stdx::make_unique(); + return std::make_unique(); default: return nullptr; } -- cgit v1.2.1