summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-01-15 16:57:28 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-01-16 18:23:43 +0200
commit3e6090a17aa06a654588c395748f81d3c821d033 (patch)
tree597f904b04801c2fdc34ed0b0ad71e714fe8ee13
parent6ee4050182e6ac2196baf0147ee59f193ed37eb1 (diff)
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>
-rw-r--r--src/libcamera/event_dispatcher_poll.cpp2
-rw-r--r--src/libcamera/include/event_dispatcher_poll.h2
2 files changed, 2 insertions, 2 deletions
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<struct pollfd> &pollfds)
+void EventDispatcherPoll::processNotifiers(const std::vector<struct pollfd> &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<int, EventNotifierSetPoll> notifiers_;
std::list<Timer *> timers_;
- void processNotifiers(std::vector<struct pollfd> &pollfds);
+ void processNotifiers(const std::vector<struct pollfd> &pollfds);
void processTimers();
};