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
|
|
@ -322,20 +322,17 @@ struct VideoComponent::Pimpl : public Component,
|
|||
|
||||
void playbackStarted()
|
||||
{
|
||||
if (owner.onPlaybackStarted != nullptr)
|
||||
owner.onPlaybackStarted();
|
||||
NullCheckedInvocation::invoke (owner.onPlaybackStarted);
|
||||
}
|
||||
|
||||
void playbackStopped()
|
||||
{
|
||||
if (owner.onPlaybackStopped != nullptr)
|
||||
owner.onPlaybackStopped();
|
||||
NullCheckedInvocation::invoke (owner.onPlaybackStopped);
|
||||
}
|
||||
|
||||
void errorOccurred (const String& errorMessage)
|
||||
{
|
||||
if (owner.onErrorOccurred != nullptr)
|
||||
owner.onErrorOccurred (errorMessage);
|
||||
NullCheckedInvocation::invoke (owner.onErrorOccurred, errorMessage);
|
||||
}
|
||||
|
||||
File currentFile;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue