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:
@@ -177,7 +177,7 @@ void wxMenuItem::UpdateItemBitmap()
|
||||
|
||||
if ( m_bitmap.Ok() )
|
||||
{
|
||||
m_peer->SetBitmap( m_bitmap );
|
||||
GetPeer()->SetBitmap( m_bitmap );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,11 +190,11 @@ void wxMenuItem::UpdateItemStatus()
|
||||
return ;
|
||||
|
||||
if ( IsCheckable() && IsChecked() )
|
||||
m_peer->Check( true );
|
||||
GetPeer()->Check( true );
|
||||
else
|
||||
m_peer->Check( false );
|
||||
GetPeer()->Check( false );
|
||||
|
||||
m_peer->Enable( IsEnabled() );
|
||||
GetPeer()->Enable( IsEnabled() );
|
||||
}
|
||||
|
||||
void wxMenuItem::UpdateItemText()
|
||||
@@ -210,7 +210,7 @@ void wxMenuItem::UpdateItemText()
|
||||
}
|
||||
|
||||
wxAcceleratorEntry *entry = wxAcceleratorEntry::Create( m_text ) ;
|
||||
m_peer->SetLabel( text, entry );
|
||||
GetPeer()->SetLabel( text, entry );
|
||||
delete entry ;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user