going private for m_peer to give a foundation for better encapsulation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-03-18 14:20:12 +00:00
parent 37204b5d30
commit 2275632282
36 changed files with 152 additions and 144 deletions

View File

@@ -41,7 +41,7 @@ bool wxStaticText::Create( wxWindow *parent,
if ( !wxControl::Create( parent, id, pos, size, style, wxDefaultValidator, name ) )
return false;
m_peer = wxWidgetImpl::CreateStaticText( this, parent, id, label, pos, size, style, GetExtraStyle() );
SetPeer(wxWidgetImpl::CreateStaticText( this, parent, id, label, pos, size, style, GetExtraStyle() ));
MacPostControlCreate( pos, size );
@@ -101,7 +101,7 @@ bool wxStaticText::SetFont(const wxFont& font)
void wxStaticText::DoSetLabel(const wxString& label)
{
m_label = RemoveMnemonics(label);
m_peer->SetLabel(m_label , GetFont().GetEncoding() );
GetPeer()->SetLabel(m_label , GetFont().GetEncoding() );
}
#if wxUSE_MARKUP && wxOSX_USE_COCOA
@@ -111,7 +111,7 @@ bool wxStaticText::DoSetLabelMarkup(const wxString& markup)
if ( !wxStaticTextBase::DoSetLabelMarkup(markup) )
return false;
m_peer->SetLabelMarkup(markup);
GetPeer()->SetLabelMarkup(markup);
return true;
}