mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-12 23:09:45 +03:00
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>
This commit is contained in:
parent
90de3690c4
commit
9342c60649
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue