diff options
| author | Arvid Norberg <[email protected]> | 2018-09-13 10:36:41 -0700 |
|---|---|---|
| committer | Arvid Norberg <[email protected]> | 2018-09-13 10:36:41 -0700 |
| commit | 3ccfa34b32b7ed9d7bef05baa36827b4b262197e (patch) | |
| tree | f8a24afd1e7d6949040aff1e177b8adf7bc84f83 /src/httprpc.cpp | |
| parent | Merge #14213: Docs: Fix reference to lint-locale-dependence.sh (diff) | |
| download | discoin-3ccfa34b32b7ed9d7bef05baa36827b4b262197e.tar.xz discoin-3ccfa34b32b7ed9d7bef05baa36827b4b262197e.zip | |
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 43d8c4cbb..4064251c7 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); } |