libcamera: PixelFormat: Mark all function arguments of type PixelFormat as const reference

PixelFormat was previously an alias for unsigned int but is now a
class. Make all functions taking PixelFormat do so as a const reference.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Niklas Söderlund
2020-03-17 04:29:06 +01:00
parent 718f5e99a9
commit aaf1ce50f9
12 changed files with 20 additions and 18 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ QImage ViewFinder::getCurrentImage()
return image_->copy();
}
int ViewFinder::setFormat(libcamera::PixelFormat format, unsigned int width,
unsigned int height)
int ViewFinder::setFormat(const libcamera::PixelFormat &format,
unsigned int width, unsigned int height)
{
int ret;