mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Fix unused variable warnings
This commit is contained in:
parent
7ab382d357
commit
c2f567f3ee
5 changed files with 7 additions and 7 deletions
|
|
@ -134,7 +134,7 @@ void AudioProcessorARAExtension::didBindToARA() noexcept
|
|||
playbackRenderer->araExtension = this;
|
||||
#endif
|
||||
|
||||
#if (! JUCE_DISABLE_ASSERTIONS)
|
||||
#if JUCE_ASSERTIONS_ENABLED_OR_LOGGED
|
||||
// validate proper subclassing of the instance role classes
|
||||
if (auto playbackRenderer = getPlaybackRenderer())
|
||||
jassert (dynamic_cast<ARAPlaybackRenderer*> (playbackRenderer) != nullptr);
|
||||
|
|
|
|||
|
|
@ -1633,7 +1633,7 @@ public:
|
|||
|
||||
const auto handled = [&]() -> bool
|
||||
{
|
||||
if (auto* target = findCurrentTextInputTarget())
|
||||
if (findCurrentTextInputTarget() != nullptr)
|
||||
if (const auto* inputContext = [view inputContext])
|
||||
return [inputContext handleEvent: ev] && ! viewCannotHandleEvent;
|
||||
|
||||
|
|
|
|||
|
|
@ -1107,7 +1107,7 @@ static void postTraitChangeNotification (UITraitCollection* previousTraitCollect
|
|||
|
||||
- (BOOL) canPerformAction: (SEL) action withSender: (id) sender
|
||||
{
|
||||
if (auto* target = [self getTextInputTarget])
|
||||
if ([self getTextInputTarget] != nullptr)
|
||||
{
|
||||
if (action == @selector (paste:))
|
||||
return [[UIPasteboard generalPasteboard] hasStrings];
|
||||
|
|
@ -1266,7 +1266,7 @@ static void postTraitChangeNotification (UITraitCollection* previousTraitCollect
|
|||
- (UITextRange*) markedTextRange
|
||||
{
|
||||
if (owner != nullptr && owner->stringBeingComposed.isNotEmpty())
|
||||
if (auto* target = owner->findCurrentTextInputTarget())
|
||||
if (owner->findCurrentTextInputTarget() != nullptr)
|
||||
return [JuceUITextRange withRange: owner->getMarkedTextRange()];
|
||||
|
||||
return nil;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -542,7 +542,7 @@ private:
|
|||
|
||||
startSession();
|
||||
|
||||
if (auto* videoConnection = getVideoConnection())
|
||||
if (getVideoConnection() != nullptr)
|
||||
imageOutput->triggerImageCapture (*this);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue