diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main.cpp b/src/main.cpp index 1359b22..e99e134 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -20,17 +20,11 @@ struct Poller { std::vector<std::function<int(int)>> handlers; std::vector<struct pollfd> pfds; - Poller(); + Poller() = default; void add_fd(int fd, std::function<int(int)> handler); int check_events(); }; -Poller::Poller() - : handlers(), - pfds() -{ -} - void Poller::add_fd(int fd, std::function<int(int)> handler) { pfds.emplace_back(pollfd{ .fd = fd, .events = POLLIN, .revents = 0 }); handlers.emplace_back(std::move(handler)); |