mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-20 07:46:30 +01:00
Review uses of safenew...
... add comments and assertions, and use make_unique instead where possible
This commit is contained in:
@@ -778,6 +778,7 @@ TimerRecordPathCtrl * TimerRecordDialog::NewPathControl(wxWindow *wParent, const
|
||||
const wxString &sCaption, const wxString &sValue)
|
||||
{
|
||||
TimerRecordPathCtrl * pTextCtrl;
|
||||
wxASSERT(wParent); // to justify safenew
|
||||
pTextCtrl = safenew TimerRecordPathCtrl(wParent, iID, sValue);
|
||||
pTextCtrl->SetName(sCaption);
|
||||
return pTextCtrl;
|
||||
|
||||
Reference in New Issue
Block a user