libcamera: event_dispatcher_poll: Constify argument to processNotifiers

The EventDispatcherPoll::processNotifiers() function doesn't modify the
argument it receives, make it const.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Laurent Pinchart 2019-01-15 16:57:28 +02:00
parent 6ee4050182
commit 3e6090a17a
2 changed files with 2 additions and 2 deletions

View file

@ -173,7 +173,7 @@ short EventDispatcherPoll::EventNotifierSetPoll::events() const
return events; return events;
} }
void EventDispatcherPoll::processNotifiers(std::vector<struct pollfd> &pollfds) void EventDispatcherPoll::processNotifiers(const std::vector<struct pollfd> &pollfds)
{ {
static const struct { static const struct {
EventNotifier::Type type; EventNotifier::Type type;

View file

@ -41,7 +41,7 @@ private:
std::map<int, EventNotifierSetPoll> notifiers_; std::map<int, EventNotifierSetPoll> notifiers_;
std::list<Timer *> timers_; std::list<Timer *> timers_;
void processNotifiers(std::vector<struct pollfd> &pollfds); void processNotifiers(const std::vector<struct pollfd> &pollfds);
void processTimers(); void processTimers();
}; };