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:
committed by
Paul Licameli
parent
186679b3a6
commit
942c62b6f6
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user