mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-23 23:03:55 +02:00
More uses of safenew for classes we derive from wxWindow classes...
... Also removed some unnecessary deletes of widgets that are managed by parent windows
This commit is contained in:
@@ -362,7 +362,7 @@ void EffectChangeSpeed::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
S.AddPrompt(_("Current Length:"));
|
||||
|
||||
mpFromLengthCtrl = new
|
||||
mpFromLengthCtrl = safenew
|
||||
NumericTextCtrl(NumericConverter::TIME,
|
||||
S.GetParent(),
|
||||
wxID_ANY,
|
||||
@@ -378,7 +378,7 @@ void EffectChangeSpeed::PopulateOrExchange(ShuttleGui & S)
|
||||
|
||||
S.AddPrompt(_("New Length:"));
|
||||
|
||||
mpToLengthCtrl = new
|
||||
mpToLengthCtrl = safenew
|
||||
NumericTextCtrl(NumericConverter::TIME,
|
||||
S.GetParent(),
|
||||
ID_ToLength,
|
||||
|
Reference in New Issue
Block a user