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:
@@ -173,7 +173,7 @@ short EventDispatcherPoll::EventNotifierSetPoll::events() const
|
||||
return events;
|
||||
}
|
||||
|
||||
void EventDispatcherPoll::processNotifiers(std::vector<struct pollfd> &pollfds)
|
||||
void EventDispatcherPoll::processNotifiers(const std::vector<struct pollfd> &pollfds)
|
||||
{
|
||||
static const struct {
|
||||
EventNotifier::Type type;
|
||||
|
||||
@@ -41,7 +41,7 @@ private:
|
||||
std::map<int, EventNotifierSetPoll> notifiers_;
|
||||
std::list<Timer *> timers_;
|
||||
|
||||
void processNotifiers(std::vector<struct pollfd> &pollfds);
|
||||
void processNotifiers(const std::vector<struct pollfd> &pollfds);
|
||||
void processTimers();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user