summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-06-30 13:53:23 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commit0bb6eac7f9c443017d28be400f5adddf7c486580 (patch)
tree7d34d16508df8d9846547db5bb14ab46e5a6226c /src
parent18cc724bb76a6b2b6e9607ce6658cb9cc8f7ec0d (diff)
main: cleanup Poller implementation
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp8
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));