mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Misc ScopedPointer changes to start using reset() and get() rather than assignments and casts (part of an ongoing drift towards more std::unique_ptr compatibility)
This commit is contained in:
parent
c1bdfc6a55
commit
2dc9316420
131 changed files with 574 additions and 576 deletions
|
|
@ -304,7 +304,7 @@ bool JUCEApplicationBase::initialiseApp()
|
|||
|
||||
#if JUCE_HANDLE_MULTIPLE_INSTANCES
|
||||
if (multipleInstanceHandler != nullptr)
|
||||
MessageManager::getInstance()->registerBroadcastListener (multipleInstanceHandler);
|
||||
MessageManager::getInstance()->registerBroadcastListener (multipleInstanceHandler.get());
|
||||
#endif
|
||||
|
||||
return true;
|
||||
|
|
@ -316,7 +316,7 @@ int JUCEApplicationBase::shutdownApp()
|
|||
|
||||
#if JUCE_HANDLE_MULTIPLE_INSTANCES
|
||||
if (multipleInstanceHandler != nullptr)
|
||||
MessageManager::getInstance()->deregisterBroadcastListener (multipleInstanceHandler);
|
||||
MessageManager::getInstance()->deregisterBroadcastListener (multipleInstanceHandler.get());
|
||||
#endif
|
||||
|
||||
JUCE_TRY
|
||||
|
|
@ -326,7 +326,7 @@ int JUCEApplicationBase::shutdownApp()
|
|||
}
|
||||
JUCE_CATCH_EXCEPTION
|
||||
|
||||
multipleInstanceHandler = nullptr;
|
||||
multipleInstanceHandler.reset();
|
||||
return getApplicationReturnValue();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue