1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-14 08:36:27 +01:00

Remove some naked new amd delete in: various

This commit is contained in:
Paul Licameli
2016-04-08 04:32:11 -04:00
committed by Paul Licameli
parent 186679b3a6
commit 942c62b6f6
23 changed files with 165 additions and 251 deletions

View File

@@ -2026,7 +2026,7 @@ ShuttleGui::ShuttleGui(wxWindow * pParent, teShuttleMode ShuttleMode) :
return;
}
mpShuttle = new ShuttlePrefs;
mpShuttle = std::make_unique<ShuttlePrefs>();
// In this case the client is the GUI, so if creating we do want to
// store in the client.
mpShuttle->mbStoreInClient = (mShuttleMode == eIsCreating );
@@ -2034,8 +2034,6 @@ ShuttleGui::ShuttleGui(wxWindow * pParent, teShuttleMode ShuttleMode) :
ShuttleGui::~ShuttleGui()
{
if( mpShuttle )
delete mpShuttle;
}
// Now we have Audacity specific shuttle functions.