diff options
| author | practicalswift <[email protected]> | 2017-06-21 21:10:00 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2017-08-16 10:24:18 +0200 |
| commit | 36d326e8b0866df4e70f81c2aa0a2e19d544399c (patch) | |
| tree | be4837f43af4a7fb2c48753849bb3e7a9b776387 /src/zmq/zmqpublishnotifier.cpp | |
| parent | Merge #11056: disable jni in builds (diff) | |
| download | discoin-36d326e8b0866df4e70f81c2aa0a2e19d544399c.tar.xz discoin-36d326e8b0866df4e70f81c2aa0a2e19d544399c.zip | |
Use nullptr instead of zero (0) as the null pointer constant
Diffstat (limited to 'src/zmq/zmqpublishnotifier.cpp')
| -rw-r--r-- | src/zmq/zmqpublishnotifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zmq/zmqpublishnotifier.cpp b/src/zmq/zmqpublishnotifier.cpp index 700c39f66..ab54e2bb8 100644 --- a/src/zmq/zmqpublishnotifier.cpp +++ b/src/zmq/zmqpublishnotifier.cpp @@ -126,7 +126,7 @@ void CZMQAbstractPublishNotifier::Shutdown() zmq_close(psocket); } - psocket = 0; + psocket = nullptr; } bool CZMQAbstractPublishNotifier::SendMessage(const char *command, const void* data, size_t size) @@ -136,7 +136,7 @@ bool CZMQAbstractPublishNotifier::SendMessage(const char *command, const void* d /* send three parts, command & data & a LE 4byte sequence number */ unsigned char msgseq[sizeof(uint32_t)]; WriteLE32(&msgseq[0], nSequence); - int rc = zmq_send_multipart(psocket, command, strlen(command), data, size, msgseq, (size_t)sizeof(uint32_t), (void*)0); + int rc = zmq_send_multipart(psocket, command, strlen(command), data, size, msgseq, (size_t)sizeof(uint32_t), nullptr); if (rc == -1) return false; |