From: Marcus Fritzsch Date: Fri, 30 Jun 2017 11:53:23 +0000 (+0200) Subject: main: cleanup Poller implementation X-Git-Tag: 4.99.1~280 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=0bb6eac7f9c443017d28be400f5adddf7c486580;p=staging%2Fwindowmanager.git main: cleanup Poller implementation Signed-off-by: Marcus Fritzsch --- 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> handlers; std::vector pfds; - Poller(); + Poller() = default; void add_fd(int fd, std::function handler); int check_events(); }; -Poller::Poller() - : handlers(), - pfds() -{ -} - void Poller::add_fd(int fd, std::function handler) { pfds.emplace_back(pollfd{ .fd = fd, .events = POLLIN, .revents = 0 }); handlers.emplace_back(std::move(handler));