1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 09:01:12 +01:00

Remove the naked new in allocation of AudacityProject

This commit is contained in:
Paul Licameli
2016-08-14 11:41:59 -04:00
parent 3d84c0d17e
commit fe5ab9a462
11 changed files with 100 additions and 56 deletions

View File

@@ -110,7 +110,9 @@ void GetDefaultWindowRect(wxRect *defRect);
void GetNextWindowPlacement(wxRect *nextRect, bool *pMaximized, bool *pIconized);
bool IsWindowAccessible(wxRect *requestedRect);
WX_DEFINE_ARRAY(AudacityProject *, AProjectArray);
using AProjectHolder =
movable_ptr_with_deleter< AudacityProject, Destroyer< AudacityProject > >;
using AProjectArray = std::vector< AProjectHolder >;
extern AProjectArray gAudacityProjects;