From 9342c606495a2bc5485b69c51f16d5730bb0386c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Date: Sat, 25 May 2019 02:16:46 +0200 Subject: tests: list_formats: Fix argument names and add const MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(-) (limited to 'test/v4l2_subdevice') diff --git a/test/v4l2_subdevice/list_formats.cpp b/test/v4l2_subdevice/list_formats.cpp index 18dd8761..3f0edafc 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; -- cgit v1.2.1