diff options
author | Arvid Norberg <arvid@blockstream.io> | 2018-09-13 10:36:41 -0700 |
---|---|---|
committer | Arvid Norberg <arvid@blockstream.io> | 2018-09-13 10:36:41 -0700 |
commit | 3ccfa34b32b7ed9d7bef05baa36827b4b262197e (patch) | |
tree | f8a24afd1e7d6949040aff1e177b8adf7bc84f83 /src/httprpc.cpp | |
parent | f0a6a922fe64c16829649281f182dc8c5e153333 (diff) |
convert C-style (void) parameter lists to C++ style ()
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 43d8c4cbbf..4064251c71 100644 --- a/src/httprpc.cpp +++ b/src/httprpc.cpp @@ -31,7 +31,7 @@ static const char* WWW_AUTH_HEADER_DATA = "Basic realm=\"jsonrpc\""; class HTTPRPCTimer : public RPCTimerBase { public: - HTTPRPCTimer(struct event_base* eventBase, std::function<void(void)>& func, int64_t millis) : + HTTPRPCTimer(struct event_base* eventBase, std::function<void()>& func, int64_t millis) : ev(eventBase, false, func) { struct timeval tv; @@ -53,7 +53,7 @@ public: { return "HTTP"; } - RPCTimerBase* NewTimer(std::function<void(void)>& func, int64_t millis) override + RPCTimerBase* NewTimer(std::function<void()>& func, int64_t millis) override { return new HTTPRPCTimer(base, func, millis); } |