mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 07:43:54 +02:00
Use macro safenew for many allocations of wxWindow subclasses
This commit is contained in:
@@ -256,7 +256,13 @@ public:
|
||||
void SetStretchyRow( int i );
|
||||
|
||||
//--Some Additions since June 2007 that don't fit in elsewhere...
|
||||
wxWindow * GetParent() {return mpParent;};
|
||||
wxWindow * GetParent()
|
||||
{
|
||||
// This assertion justifies the use of safenew in many places where GetParent()
|
||||
// is used to construct a window
|
||||
wxASSERT(mpParent != NULL);
|
||||
return mpParent;
|
||||
}
|
||||
ShuttleGuiBase & Prop( int iProp );
|
||||
int GetId() {return miIdNext;};
|
||||
void UseUpId();
|
||||
|
||||
Reference in New Issue
Block a user