mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Use nullptr instead of zero (0) as the null pointer constant
This commit is contained in:
@@ -121,7 +121,7 @@ private:
|
||||
};
|
||||
|
||||
TorControlConnection::TorControlConnection(struct event_base *_base):
|
||||
base(_base), b_conn(0)
|
||||
base(_base), b_conn(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ bool TorControlConnection::Disconnect()
|
||||
{
|
||||
if (b_conn)
|
||||
bufferevent_free(b_conn);
|
||||
b_conn = 0;
|
||||
b_conn = nullptr;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -476,7 +476,7 @@ TorController::~TorController()
|
||||
{
|
||||
if (reconnect_ev) {
|
||||
event_free(reconnect_ev);
|
||||
reconnect_ev = 0;
|
||||
reconnect_ev = nullptr;
|
||||
}
|
||||
if (service.IsValid()) {
|
||||
RemoveLocal(service);
|
||||
@@ -770,7 +770,7 @@ void StopTorControl()
|
||||
if (gBase) {
|
||||
torControlThread.join();
|
||||
event_base_free(gBase);
|
||||
gBase = 0;
|
||||
gBase = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user