aboutsummaryrefslogtreecommitdiff
path: root/src/torcontrol.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-06-21 21:10:00 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-08-16 10:24:18 +0200
commit36d326e8b0866df4e70f81c2aa0a2e19d544399c (patch)
treebe4837f43af4a7fb2c48753849bb3e7a9b776387 /src/torcontrol.cpp
parentd451d0bcf15d8025c3e963df033f918d646aff6a (diff)
Use nullptr instead of zero (0) as the null pointer constant
Diffstat (limited to 'src/torcontrol.cpp')
-rw-r--r--src/torcontrol.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/torcontrol.cpp b/src/torcontrol.cpp
index e8bc3e5e75..6b96c24af2 100644
--- a/src/torcontrol.cpp
+++ b/src/torcontrol.cpp
@@ -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;
}
}