From 71bc15aca14db549eef54d39968f8ebe343d56bd Mon Sep 17 00:00:00 2001 From: Denis Krjuchkov Date: Fri, 29 Nov 2013 15:26:57 +0600 Subject: PollGroupEPoll.hxx: add const modifiers where applicable --- src/event/PollGroupEPoll.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/event') diff --git a/src/event/PollGroupEPoll.hxx b/src/event/PollGroupEPoll.hxx index 5d50cef93..21bb3a322 100644 --- a/src/event/PollGroupEPoll.hxx +++ b/src/event/PollGroupEPoll.hxx @@ -38,8 +38,8 @@ public: PollResultEPoll() : n_events(0) { } int GetSize() const { return n_events; } - unsigned GetEvents(int i) { return events[i].events; } - void *GetObject(int i) { return events[i].data.ptr; } + unsigned GetEvents(int i) const { return events[i].events; } + void *GetObject(int i) const { return events[i].data.ptr; } void Reset() { n_events = 0; } void Clear(void *obj) { -- cgit v1.2.3