mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-01 03:10:06 +00:00
Replaced all usage of ScopedPointer with std::unique_ptr
This commit is contained in:
parent
e6104e3fed
commit
ab863a6dc2
401 changed files with 1091 additions and 1113 deletions
|
|
@ -104,7 +104,7 @@ void ModalComponentManager::attachCallback (Component* component, Callback* call
|
|||
{
|
||||
if (callback != nullptr)
|
||||
{
|
||||
ScopedPointer<Callback> callbackDeleter (callback);
|
||||
std::unique_ptr<Callback> callbackDeleter (callback);
|
||||
|
||||
for (int i = stack.size(); --i >= 0;)
|
||||
{
|
||||
|
|
@ -194,7 +194,7 @@ void ModalComponentManager::handleAsyncUpdate()
|
|||
|
||||
if (! item->isActive)
|
||||
{
|
||||
ScopedPointer<ModalItem> deleter (stack.removeAndReturn (i));
|
||||
std::unique_ptr<ModalItem> deleter (stack.removeAndReturn (i));
|
||||
Component::SafePointer<Component> compToDelete (item->autoDelete ? item->component : nullptr);
|
||||
|
||||
for (int j = item->callbacks.size(); --j >= 0;)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue