From patchwork Tue Jan 15 15:18:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 237 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B92CD60C8A for ; Tue, 15 Jan 2019 16:18:54 +0100 (CET) Received: from pendragon.bb.dnainternet.fi (dfj612yhrgyx302h3jwwy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:ce28:277f:58d7:3ca4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3788F55C for ; Tue, 15 Jan 2019 16:18:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1547565534; bh=86w73yrQP8oVbkVs6Ize57x9ATcWJzgN7QUsWxdYHzg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BV0ZTb0Dy8JswujkQ+nSoCic6cawwdr/mHn23pCEf3q9iv3d1TnbwCMX57HHpv6Ey NlFmlWoXhJ1mBMSSOxEx1FWElpLiqVLorlsZ6P8ISD3cJzcuYjBfhROcsI/ShyEuxW G3PD5m9UQzspJJdrKAhfM3CHFath2zlDuh6mkK+U= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Tue, 15 Jan 2019 17:18:46 +0200 Message-Id: <20190115151849.1547-6-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190115151849.1547-1-laurent.pinchart@ideasonboard.com> References: <20190115151849.1547-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 5/8] libcamera: event_dispatcher_poll: Constify argument to processNotifiers X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2019 15:18:55 -0000 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(-) diff --git a/src/libcamera/event_dispatcher_poll.cpp b/src/libcamera/event_dispatcher_poll.cpp index a497a7fe9177..69edfcbf2725 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 30fd58506d6b..a41926e11a11 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(); };