summaryrefslogtreecommitdiff
path: root/test/v4l2_subdevice
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-05-25 02:16:46 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-05-25 14:26:40 +0200
commit9342c606495a2bc5485b69c51f16d5730bb0386c (patch)
tree9471071924102e5a439130b20dd99ae3100df99c /test/v4l2_subdevice
parent90de3690c45655d12260ce5879358552f4824c88 (diff)
tests: list_formats: Fix argument names and add const
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 <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/v4l2_subdevice')
-rw-r--r--test/v4l2_subdevice/list_formats.cpp6
1 files changed, 3 insertions, 3 deletions
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<SizeRange> &formats);
+ const std::vector<SizeRange> &sizes);
};
void ListFormatsTest::printFormats(unsigned int pad,
unsigned int code,
- std::vector<SizeRange> &sizes)
+ const std::vector<SizeRange> &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;