mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-17 00:07:54 +01: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:
@@ -226,7 +226,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
||||
S.AddFixedText(_("&Foreground:"), false);
|
||||
if (S.GetMode() == eIsCreating)
|
||||
{
|
||||
mForegroundStartT = new
|
||||
mForegroundStartT = safenew
|
||||
NumericTextCtrl(NumericConverter::TIME, this,
|
||||
ID_FOREGROUNDSTART_T,
|
||||
_("hh:mm:ss + hundredths"),
|
||||
@@ -242,7 +242,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
||||
|
||||
if (S.GetMode() == eIsCreating)
|
||||
{
|
||||
mForegroundEndT = new
|
||||
mForegroundEndT = safenew
|
||||
NumericTextCtrl(NumericConverter::TIME, this,
|
||||
ID_FOREGROUNDEND_T,
|
||||
_("hh:mm:ss + hundredths"),
|
||||
@@ -264,7 +264,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
||||
S.AddFixedText(_("&Background:"));
|
||||
if (S.GetMode() == eIsCreating)
|
||||
{
|
||||
mBackgroundStartT = new
|
||||
mBackgroundStartT = safenew
|
||||
NumericTextCtrl(NumericConverter::TIME, this,
|
||||
ID_BACKGROUNDSTART_T,
|
||||
_("hh:mm:ss + hundredths"),
|
||||
@@ -280,7 +280,7 @@ ContrastDialog::ContrastDialog(wxWindow * parent, wxWindowID id,
|
||||
|
||||
if (S.GetMode() == eIsCreating)
|
||||
{
|
||||
mBackgroundEndT = new
|
||||
mBackgroundEndT = safenew
|
||||
NumericTextCtrl(NumericConverter::TIME, this,
|
||||
ID_BACKGROUNDEND_T,
|
||||
_("hh:mm:ss + hundredths"),
|
||||
|
||||
Reference in New Issue
Block a user