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/rpc/server.h | |
parent | f0a6a922fe64c16829649281f182dc8c5e153333 (diff) |
convert C-style (void) parameter lists to C++ style ()
Diffstat (limited to 'src/rpc/server.h')
-rw-r--r-- | src/rpc/server.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h index 15d0ec80f5..2d62a76f3c 100644 --- a/src/rpc/server.h +++ b/src/rpc/server.h @@ -110,7 +110,7 @@ public: * This is needed to cope with the case in which there is no HTTP server, but * only GUI RPC console, and to break the dependency of pcserver on httprpc. */ - virtual RPCTimerBase* NewTimer(std::function<void(void)>& func, int64_t millis) = 0; + virtual RPCTimerBase* NewTimer(std::function<void()>& func, int64_t millis) = 0; }; /** Set the factory function for timers */ @@ -124,7 +124,7 @@ void RPCUnsetTimerInterface(RPCTimerInterface *iface); * Run func nSeconds from now. * Overrides previous timer <name> (if any). */ -void RPCRunLater(const std::string& name, std::function<void(void)> func, int64_t nSeconds); +void RPCRunLater(const std::string& name, std::function<void()> func, int64_t nSeconds); typedef UniValue(*rpcfn_type)(const JSONRPCRequest& jsonRequest); |