1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix unused variable warnings

This commit is contained in:
reuk 2024-12-02 14:14:27 +00:00
parent 7ab382d357
commit c2f567f3ee
No known key found for this signature in database
5 changed files with 7 additions and 7 deletions

View file

@ -646,7 +646,7 @@ private:
printImageOutputDebugInfo (captureOutput);
if (auto* connection = findVideoConnection (captureOutput))
if (findVideoConnection (captureOutput) != nullptr)
{
auto* photoOutput = (AVCapturePhotoOutput*) captureOutput;
auto outputConnection = [photoOutput connectionWithMediaType: AVMediaTypeVideo];
@ -1176,7 +1176,7 @@ struct CameraDevice::ViewerComponent : public UIViewComponent
{
if ([keyPath isEqualToString: @"videoRotationAngleForHorizonLevelPreview"])
{
if (auto* previewLayer = getPreviewLayer (self))
if (getPreviewLayer (self) != nullptr)
{
auto* viewer = static_cast<ViewerComponent*> (context);
auto& session = viewer->cameraDevice.pimpl->captureSession;

View file

@ -542,7 +542,7 @@ private:
startSession();
if (auto* videoConnection = getVideoConnection())
if (getVideoConnection() != nullptr)
imageOutput->triggerImageCapture (*this);
}