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/httprpc.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/httprpc.cpp')
| -rw-r--r-- | src/httprpc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/httprpc.cpp b/src/httprpc.cpp index dd219c729..8c1a74677 100644 --- a/src/httprpc.cpp +++ b/src/httprpc.cpp @@ -62,7 +62,7 @@ private: /* Pre-base64-encoded authentication token */ static std::string strRPCUserColonPass; /* Stored RPC timer interface (for unregistration) */ -static HTTPRPCTimerInterface* httpRPCTimerInterface = 0; +static HTTPRPCTimerInterface* httpRPCTimerInterface = nullptr; static void JSONErrorReply(HTTPRequest* req, const UniValue& objError, const UniValue& id) { @@ -255,6 +255,6 @@ void StopHTTPRPC() if (httpRPCTimerInterface) { RPCUnsetTimerInterface(httpRPCTimerInterface); delete httpRPCTimerInterface; - httpRPCTimerInterface = 0; + httpRPCTimerInterface = nullptr; } } |