fixing warnings in osx common code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
530cda2fdc
commit
0faf03bf97
@ -66,13 +66,13 @@ wxWindow *wxButton::SetDefault()
|
||||
return btnOldDefault;
|
||||
}
|
||||
|
||||
void wxButton::Command (wxCommandEvent & event)
|
||||
void wxButton::Command (wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
m_peer->PerformClick() ;
|
||||
// ProcessCommand(event);
|
||||
}
|
||||
|
||||
bool wxButton::OSXHandleClicked( double timestampsec )
|
||||
bool wxButton::OSXHandleClicked( double WXUNUSED(timestampsec) )
|
||||
{
|
||||
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_windowId);
|
||||
event.SetEventObject(this);
|
||||
@ -111,7 +111,7 @@ bool wxDisclosureTriangle::IsOpen() const
|
||||
return m_peer->GetValue() == 1;
|
||||
}
|
||||
|
||||
bool wxDisclosureTriangle::OSXHandleClicked( double timestampsec )
|
||||
bool wxDisclosureTriangle::OSXHandleClicked( double WXUNUSED(timestampsec) )
|
||||
{
|
||||
// Just emit button event for now
|
||||
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_windowId);
|
||||
|
@ -80,7 +80,7 @@ void wxCheckBox::DoSet3StateValue(wxCheckBoxState val)
|
||||
m_peer->SetValue( val ) ;
|
||||
}
|
||||
|
||||
bool wxCheckBox::OSXHandleClicked( double timestampsec )
|
||||
bool wxCheckBox::OSXHandleClicked( double WXUNUSED(timestampsec) )
|
||||
{
|
||||
bool sendEvent = true;
|
||||
wxCheckBoxState newState = Get3StateValue();
|
||||
|
@ -230,7 +230,7 @@ void * wxChoice::DoGetItemClientData(unsigned int n) const
|
||||
return (void *)m_datas[n];
|
||||
}
|
||||
|
||||
bool wxChoice::OSXHandleClicked( double timestampsec )
|
||||
bool wxChoice::OSXHandleClicked( double WXUNUSED(timestampsec) )
|
||||
{
|
||||
wxCommandEvent event( wxEVT_COMMAND_CHOICE_SELECTED, m_windowId );
|
||||
|
||||
|
@ -215,7 +215,7 @@ void wxListBox::GetValueCallback( unsigned int n, wxListWidgetColumn* col , wxLi
|
||||
value.Set( GetString( n ) );
|
||||
}
|
||||
|
||||
void wxListBox::SetValueCallback( unsigned int n, wxListWidgetColumn* col , wxListWidgetCellValue& value )
|
||||
void wxListBox::SetValueCallback( unsigned int WXUNUSED(n), wxListWidgetColumn* WXUNUSED(col) , wxListWidgetCellValue& WXUNUSED(value) )
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -245,7 +245,7 @@ void wxNonOwnedWindow::HandleResized( double timestampsec )
|
||||
wxWindowMac::MacSuperChangedPosition() ; // like this only children will be notified
|
||||
}
|
||||
|
||||
void wxNonOwnedWindow::HandleResizing( double timestampsec, wxRect* rect )
|
||||
void wxNonOwnedWindow::HandleResizing( double WXUNUSED(timestampsec), wxRect* rect )
|
||||
{
|
||||
wxRect r = *rect ;
|
||||
|
||||
|
@ -282,7 +282,7 @@ bool wxNotebook::InsertPage(size_t nPage,
|
||||
return true;
|
||||
}
|
||||
|
||||
int wxNotebook::HitTest(const wxPoint& pt, long * flags) const
|
||||
int wxNotebook::HitTest(const wxPoint& WXUNUSED(pt), long * WXUNUSED(flags)) const
|
||||
{
|
||||
int resultV = wxNOT_FOUND;
|
||||
#if 0
|
||||
@ -510,7 +510,7 @@ void wxNotebook::ChangePage(int nOldSel, int nSel)
|
||||
m_peer->SetValue( m_nSelection + 1 ) ;
|
||||
}
|
||||
|
||||
bool wxNotebook::OSXHandleClicked( double timestampsec )
|
||||
bool wxNotebook::OSXHandleClicked( double WXUNUSED(timestampsec) )
|
||||
{
|
||||
bool status = false ;
|
||||
|
||||
|
@ -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() )
|
||||
{
|
||||
|
@ -83,7 +83,7 @@ void wxScrollBar::Command( wxCommandEvent& event )
|
||||
ProcessCommand( event );
|
||||
}
|
||||
|
||||
bool wxScrollBar::OSXHandleClicked( double timestampsec )
|
||||
bool wxScrollBar::OSXHandleClicked( double WXUNUSED(timestampsec) )
|
||||
{
|
||||
int new_pos = m_peer->GetValue();
|
||||
|
||||
|
@ -296,7 +296,7 @@ void wxSlider::TriggerScrollEvent( wxEventType scrollEvent)
|
||||
HandleWindowEvent( cevent );
|
||||
}
|
||||
|
||||
bool wxSlider::OSXHandleClicked( double timestampsec )
|
||||
bool wxSlider::OSXHandleClicked( double WXUNUSED(timestampsec) )
|
||||
{
|
||||
TriggerScrollEvent(wxEVT_SCROLL_THUMBRELEASE);
|
||||
|
||||
|
@ -79,7 +79,7 @@ void wxSpinButton::SendThumbTrackEvent()
|
||||
HandleWindowEvent( event );
|
||||
}
|
||||
|
||||
bool wxSpinButton::OSXHandleClicked( double timestampsec )
|
||||
bool wxSpinButton::OSXHandleClicked( double WXUNUSED(timestampsec) )
|
||||
{
|
||||
// all events have already been processed
|
||||
return true;
|
||||
|
@ -89,7 +89,7 @@ void wxToggleButton::Command(wxCommandEvent & event)
|
||||
ProcessCommand(event);
|
||||
}
|
||||
|
||||
bool wxToggleButton::OSXHandleClicked( double timestampsec )
|
||||
bool wxToggleButton::OSXHandleClicked( double WXUNUSED(timestampsec) )
|
||||
{
|
||||
wxCommandEvent event(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, m_windowId);
|
||||
event.SetInt(GetValue());
|
||||
@ -156,7 +156,7 @@ void wxBitmapToggleButton::Command(wxCommandEvent & event)
|
||||
ProcessCommand(event);
|
||||
}
|
||||
|
||||
bool wxBitmapToggleButton::OSXHandleClicked( double timestampsec )
|
||||
bool wxBitmapToggleButton::OSXHandleClicked( double WXUNUSED(timestampsec) )
|
||||
{
|
||||
wxCommandEvent event(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, m_windowId);
|
||||
event.SetInt(GetValue());
|
||||
|
@ -2158,7 +2158,7 @@ Rect wxMacGetBoundsForControl( wxWindowMac* window , const wxPoint& pos , const
|
||||
return bounds ;
|
||||
}
|
||||
|
||||
bool wxWindowMac::OSXHandleClicked( double timestampsec )
|
||||
bool wxWindowMac::OSXHandleClicked( double WXUNUSED(timestampsec) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user