From 3e6090a17aa06a654588c395748f81d3c821d033 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 15 Jan 2019 16:57:28 +0200 Subject: libcamera: event_dispatcher_poll: Constify argument to processNotifiers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The EventDispatcherPoll::processNotifiers() function doesn't modify the argument it receives, make it const. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- src/libcamera/event_dispatcher_poll.cpp | 2 +- src/libcamera/include/event_dispatcher_poll.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libcamera/event_dispatcher_poll.cpp b/src/libcamera/event_dispatcher_poll.cpp index a497a7fe..69edfcbf 100644 --- a/src/libcamera/event_dispatcher_poll.cpp +++ b/src/libcamera/event_dispatcher_poll.cpp @@ -173,7 +173,7 @@ short EventDispatcherPoll::EventNotifierSetPoll::events() const return events; } -void EventDispatcherPoll::processNotifiers(std::vector &pollfds) +void EventDispatcherPoll::processNotifiers(const std::vector &pollfds) { static const struct { EventNotifier::Type type; diff --git a/src/libcamera/include/event_dispatcher_poll.h b/src/libcamera/include/event_dispatcher_poll.h index 30fd5850..a41926e1 100644 --- a/src/libcamera/include/event_dispatcher_poll.h +++ b/src/libcamera/include/event_dispatcher_poll.h @@ -41,7 +41,7 @@ private: std::map notifiers_; std::list timers_; - void processNotifiers(std::vector &pollfds); + void processNotifiers(const std::vector &pollfds); void processTimers(); }; -- cgit v1.2.1