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:
parent
6ee4050182
commit
3e6090a17a
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue