mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-11 03:53:22 +02:00
convert C-style (void) parameter lists to C++ style ()
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user