mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
More internal message class refactoring/decoupling.
This commit is contained in:
parent
31209dadfc
commit
e905f52014
14 changed files with 170 additions and 218 deletions
|
|
@ -53,7 +53,7 @@ void ActionBroadcaster::CallbackReceiver::handleMessage (const Message& message)
|
|||
ActionBroadcaster::ActionBroadcaster()
|
||||
{
|
||||
// are you trying to create this object before or after juce has been intialised??
|
||||
jassert (MessageManager::instance != nullptr);
|
||||
jassert (MessageManager::getInstanceWithoutCreating() != nullptr);
|
||||
|
||||
callback.owner = this;
|
||||
}
|
||||
|
|
@ -61,7 +61,7 @@ ActionBroadcaster::ActionBroadcaster()
|
|||
ActionBroadcaster::~ActionBroadcaster()
|
||||
{
|
||||
// all event-based objects must be deleted BEFORE juce is shut down!
|
||||
jassert (MessageManager::instance != nullptr);
|
||||
jassert (MessageManager::getInstanceWithoutCreating() != nullptr);
|
||||
}
|
||||
|
||||
void ActionBroadcaster::addActionListener (ActionListener* const listener)
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
ChangeBroadcaster::ChangeBroadcaster() noexcept
|
||||
{
|
||||
// are you trying to create this object before or after juce has been intialised??
|
||||
jassert (MessageManager::instance != nullptr);
|
||||
jassert (MessageManager::getInstanceWithoutCreating() != nullptr);
|
||||
|
||||
callback.owner = this;
|
||||
}
|
||||
|
|
@ -34,7 +34,7 @@ ChangeBroadcaster::ChangeBroadcaster() noexcept
|
|||
ChangeBroadcaster::~ChangeBroadcaster()
|
||||
{
|
||||
// all event-based objects must be deleted BEFORE juce is shut down!
|
||||
jassert (MessageManager::instance != nullptr);
|
||||
jassert (MessageManager::getInstanceWithoutCreating() != nullptr);
|
||||
}
|
||||
|
||||
void ChangeBroadcaster::addChangeListener (ChangeListener* const listener)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue