summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2019-03-27 12:21:37 -0400
committerBilly Donahue <billy.donahue@mongodb.com>2019-03-28 10:13:21 -0400
commitf922827d45ce752e148185dfa3a785f7c9cf29fd (patch)
treeb3ae7fdba18d9ef3384af6e0d009d091e5df14a3 /src/mongo/db/matcher
parentf2f422d92b639edba0a10d40a43803723cb15baf (diff)
downloadmongo-f922827d45ce752e148185dfa3a785f7c9cf29fd.tar.gz
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
Diffstat (limited to 'src/mongo/db/matcher')
-rw-r--r--src/mongo/db/matcher/expression.h4
-rw-r--r--src/mongo/db/matcher/expression_geo.h6
-rw-r--r--src/mongo/db/matcher/matcher.h4
3 files changed, 8 insertions, 6 deletions
diff --git a/src/mongo/db/matcher/expression.h b/src/mongo/db/matcher/expression.h
index 9607dce1963..e3e3d652b4a 100644
--- a/src/mongo/db/matcher/expression.h
+++ b/src/mongo/db/matcher/expression.h
@@ -30,7 +30,6 @@
#pragma once
-#include "mongo/base/disallow_copying.h"
#include "mongo/base/status.h"
#include "mongo/bson/bsonobj.h"
#include "mongo/bson/bsonobjbuilder.h"
@@ -56,7 +55,8 @@ class TreeMatchExpression;
typedef StatusWith<std::unique_ptr<MatchExpression>> StatusWithMatchExpression;
class MatchExpression {
- MONGO_DISALLOW_COPYING(MatchExpression);
+ MatchExpression(const MatchExpression&) = delete;
+ MatchExpression& operator=(const MatchExpression&) = delete;
public:
enum MatchType {
diff --git a/src/mongo/db/matcher/expression_geo.h b/src/mongo/db/matcher/expression_geo.h
index 37f4727bb1a..6d38f7fe320 100644
--- a/src/mongo/db/matcher/expression_geo.h
+++ b/src/mongo/db/matcher/expression_geo.h
@@ -42,7 +42,8 @@ class GeometryContainer;
// This represents either a $within or a $geoIntersects.
class GeoExpression {
- MONGO_DISALLOW_COPYING(GeoExpression);
+ GeoExpression(const GeoExpression&) = delete;
+ GeoExpression& operator=(const GeoExpression&) = delete;
public:
GeoExpression();
@@ -123,7 +124,8 @@ private:
// TODO: Make a struct, turn parse stuff into something like
// static Status parseNearQuery(const BSONObj& obj, NearQuery** out);
class GeoNearExpression {
- MONGO_DISALLOW_COPYING(GeoNearExpression);
+ GeoNearExpression(const GeoNearExpression&) = delete;
+ GeoNearExpression& operator=(const GeoNearExpression&) = delete;
public:
GeoNearExpression();
diff --git a/src/mongo/db/matcher/matcher.h b/src/mongo/db/matcher/matcher.h
index 5f28a70b921..ae39f597bf3 100644
--- a/src/mongo/db/matcher/matcher.h
+++ b/src/mongo/db/matcher/matcher.h
@@ -30,7 +30,6 @@
#pragma once
-#include "mongo/base/disallow_copying.h"
#include "mongo/base/status.h"
#include "mongo/bson/bsonobj.h"
#include "mongo/db/matcher/expression.h"
@@ -47,7 +46,8 @@ class CollatorInterface;
* Matcher is a simple wrapper around a BSONObj and the MatchExpression created from it.
*/
class Matcher {
- MONGO_DISALLOW_COPYING(Matcher);
+ Matcher(const Matcher&) = delete;
+ Matcher& operator=(const Matcher&) = delete;
public:
/**