mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added some overloads to OwnedArray to let items be added from std::unique_ptrs. Also removed OwnedArray::addIfNotAlreadyThere because it's ambiguous about whether the object should be deleted if it fails to be added!
This commit is contained in:
parent
332a9edb57
commit
62ead7dc7d
12 changed files with 94 additions and 56 deletions
|
|
@ -146,7 +146,7 @@ bool UndoManager::perform (UndoableAction* newAction)
|
|||
}
|
||||
|
||||
totalUnitsStored += action->getSizeInUnits();
|
||||
actionSet->actions.add (action.release());
|
||||
actionSet->actions.add (std::move (action));
|
||||
newTransaction = false;
|
||||
|
||||
moveFutureTransactionsToStash();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue