From patchwork Sat May 25 00:22:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 1292 Return-Path: Received: from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id AC75760E49 for ; Sat, 25 May 2019 02:22:40 +0200 (CEST) X-Halon-ID: 2e43fadf-7e83-11e9-8601-0050569116f7 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (unknown [89.233.230.99]) by bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA id 2e43fadf-7e83-11e9-8601-0050569116f7; Sat, 25 May 2019 02:22:37 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Sat, 25 May 2019 02:22:29 +0200 Message-Id: <20190525002229.1160-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] tests: list_formats: Fix argument names and add const 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: Sat, 25 May 2019 00:22:41 -0000 Argument name differs from definition and implementation, fix it by renaming the definition. While at it make the argument const. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart --- test/v4l2_subdevice/list_formats.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/v4l2_subdevice/list_formats.cpp b/test/v4l2_subdevice/list_formats.cpp index 18dd8761a8ab408f..3f0edafcdcd72d6b 100644 --- a/test/v4l2_subdevice/list_formats.cpp +++ b/test/v4l2_subdevice/list_formats.cpp @@ -26,15 +26,15 @@ protected: private: void printFormats(unsigned int pad, unsigned code, - std::vector &formats); + const std::vector &sizes); }; void ListFormatsTest::printFormats(unsigned int pad, unsigned int code, - std::vector &sizes) + const std::vector &sizes) { cout << "Enumerate formats on pad " << pad << endl; - for (SizeRange &size : sizes) { + for (const SizeRange &size : sizes) { cout << " mbus code: 0x" << setfill('0') << setw(4) << hex << code << endl; cout << " min width: " << dec << size.min.width << endl;