common: init values in the constructors of SpatialArrayReserve and pxStaticText

This commit is contained in:
Gregory Hainaut 2015-09-21 18:40:58 +02:00
parent 2c914b9b8f
commit 8083b2c754
2 changed files with 6 additions and 1 deletions

View File

@ -342,7 +342,7 @@ void BaseVmReserveListener::OnPageFaultEvent(const PageFaultInfo& info, bool& ha
// --------------------------------------------------------------------------------------
SpatialArrayReserve::SpatialArrayReserve( const wxString& name ) :
_parent( name )
_parent( name ), m_numblocks(0)
{
m_prot_mode = PageAccess_ReadWrite();
}

View File

@ -23,7 +23,12 @@
pxStaticText::pxStaticText( wxWindow* parent )
: _parent( parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNO_BORDER )
{
m_align = wxALIGN_CENTRE_HORIZONTAL;
m_autowrap = true;
m_wrappedWidth = -1;
m_heightInLines = 1;
SetPaddingDefaults();
}
pxStaticText::pxStaticText( wxWindow* parent, const wxString& label, wxAlignment align )