mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-14 08:36:27 +01:00
More uses of safenew
This commit is contained in:
@@ -2052,7 +2052,7 @@ GuiWaveTrack * ShuttleGui::AddGuiWaveTrack( const wxString & WXUNUSED(Name))
|
||||
// return wxDynamicCast(wxWindow::FindWindowById( miId, mpDlg), GuiWaveTrack);
|
||||
GuiWaveTrack * pGuiWaveTrack;
|
||||
miProp=1;
|
||||
mpWind = pGuiWaveTrack = new GuiWaveTrack(mpParent, miId, Name);
|
||||
mpWind = pGuiWaveTrack = safenew GuiWaveTrack(mpParent, miId, Name);
|
||||
mpWind->SetMinSize(wxSize(100,50));
|
||||
UpdateSizers();
|
||||
return pGuiWaveTrack;
|
||||
@@ -2096,7 +2096,7 @@ AttachableScrollBar * ShuttleGui::AddAttachableScrollBar( long style )
|
||||
// return wxDynamicCast(wxWindow::FindWindowById( miId, mpDlg), AttachableScrollBar);
|
||||
AttachableScrollBar * pAttachableScrollBar;
|
||||
miProp=0;
|
||||
mpWind = pAttachableScrollBar = new AttachableScrollBar(
|
||||
mpWind = pAttachableScrollBar = safenew AttachableScrollBar(
|
||||
mpParent,
|
||||
miId,
|
||||
wxDefaultPosition,
|
||||
|
||||
Reference in New Issue
Block a user