summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient_rs.h
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2019-06-14 16:42:10 -0400
committerA. Jesse Jiryu Davis <jesse@mongodb.com>2019-06-14 19:23:18 -0400
commit47b380f03e8898f4706ff01fa2be64dfb72e0dba (patch)
treefb3508758c9abd0e297afee43ac847bf5aebcbbb /src/mongo/client/dbclient_rs.h
parentb3c26131f6ab3f919beca658341e737de5d45683 (diff)
downloadmongo-47b380f03e8898f4706ff01fa2be64dfb72e0dba.tar.gz
SERVER-41071 Replace NULL and 0 with nullptr
Diffstat (limited to 'src/mongo/client/dbclient_rs.h')
-rw-r--r--src/mongo/client/dbclient_rs.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/client/dbclient_rs.h b/src/mongo/client/dbclient_rs.h
index 506a3cf6f16..92e2a93acb0 100644
--- a/src/mongo/client/dbclient_rs.h
+++ b/src/mongo/client/dbclient_rs.h
@@ -93,14 +93,14 @@ public:
Query query,
int nToReturn = 0,
int nToSkip = 0,
- const BSONObj* fieldsToReturn = 0,
+ const BSONObj* fieldsToReturn = nullptr,
int queryOptions = 0,
int batchSize = 0) override;
/** throws userassertion "no master found" */
BSONObj findOne(const std::string& ns,
const Query& query,
- const BSONObj* fieldsToReturn = 0,
+ const BSONObj* fieldsToReturn = nullptr,
int queryOptions = 0) override;
void insert(const std::string& ns, BSONObj obj, int flags = 0) override;
@@ -136,12 +136,12 @@ public:
// ---- callback pieces -------
- void say(Message& toSend, bool isRetry = false, std::string* actualServer = 0) override;
+ void say(Message& toSend, bool isRetry = false, std::string* actualServer = nullptr) override;
bool recv(Message& toRecv, int lastRequestId) override;
void checkResponse(const std::vector<BSONObj>& batch,
bool networkError,
- bool* retry = NULL,
- std::string* targetHost = NULL) override;
+ bool* retry = nullptr,
+ std::string* targetHost = nullptr) override;
/* this is the callback from our underlying connections to notify us that we got a "not master"
* error.
@@ -345,7 +345,7 @@ protected:
*/
class LazyState {
public:
- LazyState() : _lastClient(NULL), _lastOp(-1), _secondaryQueryOk(false), _retries(0) {}
+ LazyState() : _lastClient(nullptr), _lastOp(-1), _secondaryQueryOk(false), _retries(0) {}
DBClientConnection* _lastClient;
int _lastOp;
bool _secondaryQueryOk;