X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4eb5a0ec0421b3dba1c46c1dcb27a711af4bec36..b5aaf62e977b828214d65c3712478410fb2c8a05:/src/osx/radiobut_osx.cpp?ds=sidebyside diff --git a/src/osx/radiobut_osx.cpp b/src/osx/radiobut_osx.cpp index 1ffcc72750..f1bd3fa49b 100644 --- a/src/osx/radiobut_osx.cpp +++ b/src/osx/radiobut_osx.cpp @@ -97,7 +97,7 @@ void wxRadioButton::SetValue(bool val) bool wxRadioButton::GetValue() const { - return m_peer->GetValue(); + return m_peer->GetValue() != 0; } void wxRadioButton::Command(wxCommandEvent& event) @@ -106,7 +106,7 @@ void wxRadioButton::Command(wxCommandEvent& event) ProcessCommand( event ); } -bool wxRadioButton::OSXHandleClicked( double timestampsec ) +bool wxRadioButton::OSXHandleClicked( double WXUNUSED(timestampsec) ) { if ( !m_peer->ButtonClickDidStateChange() ) { @@ -160,7 +160,7 @@ wxRadioButton *wxRadioButton::AddInCycle(wxRadioButton *cycle) } void wxRadioButton::RemoveFromCycle() -{ +{ if ((m_cycle == NULL) || (m_cycle == this)) return;