summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclientcursor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/dbclientcursor.h')
-rw-r--r--src/mongo/client/dbclientcursor.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/client/dbclientcursor.h b/src/mongo/client/dbclientcursor.h
index 2dede943b4b..a085d90dbd9 100644
--- a/src/mongo/client/dbclientcursor.h
+++ b/src/mongo/client/dbclientcursor.h
@@ -191,7 +191,7 @@ public:
}
Message* getMessage() {
- return batch.m.get();
+ return &batch.m;
}
/**
@@ -215,13 +215,13 @@ public:
class Batch {
MONGO_DISALLOW_COPYING(Batch);
friend class DBClientCursor;
- std::unique_ptr<Message> m;
- int nReturned;
- int pos;
- const char* data;
+ Message m;
+ int nReturned{0};
+ int pos{0};
+ const char* data{nullptr};
public:
- Batch() : m(new Message()), nReturned(), pos(), data() {}
+ Batch() = default;
};
/**