mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 07:13:49 +01:00
Use macro safenew for many allocations of wxWindow subclasses
This commit is contained in:
@@ -200,7 +200,7 @@ void KeyConfigPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
mFilterLabel = S.AddVariableText(_("Searc&h:"));
|
||||
|
||||
if (!mFilter) {
|
||||
mFilter = new wxTextCtrl(this,
|
||||
mFilter = safenew wxTextCtrl(this,
|
||||
FilterID,
|
||||
wxT(""),
|
||||
wxDefaultPosition,
|
||||
@@ -241,7 +241,7 @@ void KeyConfigPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
S.StartThreeColumn();
|
||||
{
|
||||
if (!mKey) {
|
||||
mKey = new wxTextCtrl(this,
|
||||
mKey = safenew wxTextCtrl(this,
|
||||
CurrentComboID,
|
||||
wxT(""),
|
||||
wxDefaultPosition,
|
||||
@@ -769,7 +769,7 @@ void KeyConfigPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
S.StartThreeColumn();
|
||||
{
|
||||
if (!mKey) {
|
||||
mKey = new wxTextCtrl(this,
|
||||
mKey = safenew wxTextCtrl(this,
|
||||
CurrentComboID,
|
||||
wxT(""),
|
||||
wxDefaultPosition,
|
||||
|
||||
@@ -217,7 +217,7 @@ PrefsDialog::PrefsDialog
|
||||
{
|
||||
wxASSERT(factories.size() > 0);
|
||||
if (!uniquePage) {
|
||||
mCategories = new wxTreebookExt(this, wxID_ANY, mTitlePrefix);
|
||||
mCategories = safenew wxTreebookExt(this, wxID_ANY, mTitlePrefix);
|
||||
S.StartHorizontalLay(wxALIGN_LEFT | wxEXPAND, true);
|
||||
{
|
||||
S.Prop(1);
|
||||
|
||||
Reference in New Issue
Block a user