aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.h
diff options
context:
space:
mode:
authorArvid Norberg <arvid@blockstream.io>2018-09-13 10:36:41 -0700
committerArvid Norberg <arvid@blockstream.io>2018-09-13 10:36:41 -0700
commit3ccfa34b32b7ed9d7bef05baa36827b4b262197e (patch)
treef8a24afd1e7d6949040aff1e177b8adf7bc84f83 /src/httpserver.h
parentf0a6a922fe64c16829649281f182dc8c5e153333 (diff)
downloadbitcoin-3ccfa34b32b7ed9d7bef05baa36827b4b262197e.tar.xz
convert C-style (void) parameter lists to C++ style ()
Diffstat (limited to 'src/httpserver.h')
-rw-r--r--src/httpserver.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/httpserver.h b/src/httpserver.h
index 67c6a88314..63f96734f8 100644
--- a/src/httpserver.h
+++ b/src/httpserver.h
@@ -134,7 +134,7 @@ public:
* deleteWhenTriggered deletes this event object after the event is triggered (and the handler called)
* handler is the handler to call when the event is triggered.
*/
- HTTPEvent(struct event_base* base, bool deleteWhenTriggered, const std::function<void(void)>& handler);
+ HTTPEvent(struct event_base* base, bool deleteWhenTriggered, const std::function<void()>& handler);
~HTTPEvent();
/** Trigger the event. If tv is 0, trigger it immediately. Otherwise trigger it after
@@ -143,7 +143,7 @@ public:
void trigger(struct timeval* tv);
bool deleteWhenTriggered;
- std::function<void(void)> handler;
+ std::function<void()> handler;
private:
struct event* ev;
};