From f922827d45ce752e148185dfa3a785f7c9cf29fd Mon Sep 17 00:00:00 2001 From: Billy Donahue Date: Wed, 27 Mar 2019 12:21:37 -0400 Subject: SERVER-40357 expand all calls to MONGO_DISALLOW_COPYING produced by: hits="$(git grep -n MONGO_DISALLOW_COPYING | cut -d: -f1 )" for f in "$hits"; do sed -i.orig ' s/^\( *\)MONGO_DISALLOW_COPYING(\(.*\));/\1\2(const \2\&) = delete;\n\1\2\& operator=(const \2\&) = delete;/; ' $f done --- src/mongo/s/commands/cluster_current_op.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mongo/s/commands/cluster_current_op.cpp') diff --git a/src/mongo/s/commands/cluster_current_op.cpp b/src/mongo/s/commands/cluster_current_op.cpp index 8108201bcb0..2d72bd1f96d 100644 --- a/src/mongo/s/commands/cluster_current_op.cpp +++ b/src/mongo/s/commands/cluster_current_op.cpp @@ -44,7 +44,8 @@ namespace mongo { namespace { class ClusterCurrentOpCommand final : public CurrentOpCommandBase { - MONGO_DISALLOW_COPYING(ClusterCurrentOpCommand); + ClusterCurrentOpCommand(const ClusterCurrentOpCommand&) = delete; + ClusterCurrentOpCommand& operator=(const ClusterCurrentOpCommand&) = delete; public: ClusterCurrentOpCommand() = default; -- cgit v1.2.1