mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 00:25:07 +03:00
libcamera: geometry: Don't default-initialize Size unnecessarily
Size has a default constructor, there's no need to default-initialize instances explicitly. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
parent
ed1b290aab
commit
120cbd8024
1 changed files with 2 additions and 2 deletions
|
@ -418,7 +418,7 @@ CameraConfiguration::Status RPiCameraConfiguration::validate()
|
|||
|
||||
unsigned int rawCount = 0, outCount = 0, count = 0, maxIndex = 0;
|
||||
std::pair<int, Size> outSize[2];
|
||||
Size maxSize = {};
|
||||
Size maxSize;
|
||||
for (StreamConfiguration &cfg : config_) {
|
||||
if (isRaw(cfg.pixelFormat)) {
|
||||
/*
|
||||
|
@ -621,7 +621,7 @@ int PipelineHandlerRPi::configure(Camera *camera, CameraConfiguration *config)
|
|||
for (auto const stream : data->streams_)
|
||||
stream->reset();
|
||||
|
||||
Size maxSize = {}, sensorSize = {};
|
||||
Size maxSize, sensorSize;
|
||||
unsigned int maxIndex = 0;
|
||||
bool rawStream = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue