event/DeferEvent: explicitly forbid copying
This commit is contained in:
parent
fd8e38f8cd
commit
1ecbc2ff0f
@ -45,6 +45,9 @@ public:
|
||||
DeferEvent(EventLoop &_loop, Callback _callback) noexcept
|
||||
:loop(_loop), callback(_callback) {}
|
||||
|
||||
DeferEvent(const DeferEvent &) = delete;
|
||||
DeferEvent &operator=(const DeferEvent &) = delete;
|
||||
|
||||
~DeferEvent() noexcept {
|
||||
Cancel();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user