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:
parent
7ab382d357
commit
c2f567f3ee
5 changed files with 7 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue