1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 22:12:58 +02:00

Clone functions required by wxWidgets base classes can use safenew

This commit is contained in:
Paul Licameli
2016-03-31 01:13:29 -04:00
parent 456c8fb01e
commit 83e9e7de97
6 changed files with 22 additions and 14 deletions

View File

@@ -44,7 +44,7 @@ AppCommandEvent::~AppCommandEvent()
// Clone is required by wxwidgets; implemented via copy constructor
wxEvent *AppCommandEvent::Clone() const
{
return new AppCommandEvent(*this);
return safenew AppCommandEvent(*this);
}
/// Store a pointer to a command object