mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-09 05:01:57 +01:00
Review uses of safenew...
... add comments and assertions, and use make_unique instead where possible
This commit is contained in:
@@ -143,6 +143,7 @@ void SplashDialog::Show2( wxWindow * pParent )
|
||||
if( pSelf == NULL )
|
||||
{
|
||||
// pParent owns it
|
||||
wxASSERT(pParent);
|
||||
pSelf = safenew SplashDialog( pParent );
|
||||
}
|
||||
pSelf->mpHtml->SetPage(HelpText( wxT("welcome") ));
|
||||
|
||||
Reference in New Issue
Block a user