summaryrefslogtreecommitdiff
path: root/src/mongo/db/cloner.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/cloner.h')
-rw-r--r--src/mongo/db/cloner.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/cloner.h b/src/mongo/db/cloner.h
index 6c9abb64b12..6c8cc255b12 100644
--- a/src/mongo/db/cloner.h
+++ b/src/mongo/db/cloner.h
@@ -50,8 +50,8 @@ class Cloner {
public:
Cloner();
- void setConnection(DBClientBase* c) {
- _conn.reset(c);
+ void setConnection(std::unique_ptr<DBClientBase> c) {
+ _conn = std::move(c);
}
/**