1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-19 01:08:02 +01:00

Define movable_ptr and make_movable, use __AUDACITY_OLD_STD__ in fewer places

This commit is contained in:
Paul Licameli
2016-03-25 20:27:25 -04:00
parent 85bd752de7
commit de75a00c10
5 changed files with 19 additions and 19 deletions

View File

@@ -265,17 +265,10 @@ void UndoManager::PushState(const TrackList * l,
// Assume tags was duplicted before any changes.
// Just save a new shared_ptr to it.
#ifdef __AUDACITY_OLD_STD__
stack.push_back(
std::make_shared<UndoStackElem>
make_movable<UndoStackElem>
(std::move(tracksCopy),
longDescription, shortDescription, selectedRegion, tags)
#else
stack.emplace_back(
std::make_unique<UndoStackElem>
(std::move(tracksCopy),
longDescription, shortDescription, selectedRegion, tags)
#endif
);
current++;