mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Use NullCheckedInvocation in more places
This commit is contained in:
parent
84750f2f2a
commit
ff0cb4ad5b
46 changed files with 145 additions and 258 deletions
|
|
@ -202,8 +202,7 @@ void Label::editorShown (TextEditor* textEditor)
|
|||
if (checker.shouldBailOut())
|
||||
return;
|
||||
|
||||
if (onEditorShow != nullptr)
|
||||
onEditorShow();
|
||||
NullCheckedInvocation::invoke (onEditorShow);
|
||||
}
|
||||
|
||||
void Label::editorAboutToBeHidden (TextEditor* textEditor)
|
||||
|
|
@ -214,8 +213,7 @@ void Label::editorAboutToBeHidden (TextEditor* textEditor)
|
|||
if (checker.shouldBailOut())
|
||||
return;
|
||||
|
||||
if (onEditorHide != nullptr)
|
||||
onEditorHide();
|
||||
NullCheckedInvocation::invoke (onEditorHide);
|
||||
}
|
||||
|
||||
void Label::showEditor()
|
||||
|
|
@ -463,8 +461,7 @@ void Label::callChangeListeners()
|
|||
if (checker.shouldBailOut())
|
||||
return;
|
||||
|
||||
if (onTextChange != nullptr)
|
||||
onTextChange();
|
||||
NullCheckedInvocation::invoke (onTextChange);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue