]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing warnings in osx common code
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 23 Mar 2009 15:17:22 +0000 (15:17 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 23 Mar 2009 15:17:22 +0000 (15:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 files changed:
src/osx/button_osx.cpp
src/osx/checkbox_osx.cpp
src/osx/choice_osx.cpp
src/osx/listbox_osx.cpp
src/osx/nonownedwnd_osx.cpp
src/osx/notebook_osx.cpp
src/osx/radiobut_osx.cpp
src/osx/scrolbar_osx.cpp
src/osx/slider_osx.cpp
src/osx/spinbutt_osx.cpp
src/osx/tglbtn_osx.cpp
src/osx/window_osx.cpp

index 22f2ef156bdbcd05ebbb2a44f8cc681fbd48facf..70be0e99ce46021a1bf7b8c1016976265424f1a4 100644 (file)
@@ -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);
index 49751e2acdf03b8cb3b2173eaae1399296df3151..4a0b46ecd8b5accc77586421adf7427612702c39 100644 (file)
@@ -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();
index 15e68706841ba57062648fe1b7622107360d30bc..a2c780ec582d1715da16f43387af0bf0246196b2 100644 (file)
@@ -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 );
 
index 9ab8efb30e9cda29e6d56f31bd9985afaadb78ab..73ddffafbeaa24f7ec3d0a3438def74f1e4508b4 100644 (file)
@@ -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) )
 {
 }
 
index e1c86794ca03f1f402984496b84cab5490f00cab..ed53785787c4aa1463acac38b6e36578f6dee365 100644 (file)
@@ -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 ;
 
index a0824ff991b5e2bdd0f59fdd9a0a6a64f79f7a0b..0f3c83577e6207caab975aa2fdd4507cdcb69a8b 100644 (file)
@@ -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 ;
 
index c85c62e8bd5eaff740c9c4ba76732550d96c12cc..65ef802052683ed4907447b8473cd2a4449e560d 100644 (file)
@@ -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() )
     {
index 9b8371a172e754da06e58249324b649262fca80f..22c25b2f1912485afaace7e4098f4e7e6325c8b1 100644 (file)
@@ -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();
 
index ce4815ad3d9e2c028f8a115677372631ecb99eef..6a7810e00cd182a86b507aa8777b3a052876d753 100644 (file)
@@ -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);
  
index b8c669c1543108803328562254b06e05b65533f8..f16fe1e072e85e655f30d19f821ddabbb2ca5b54 100644 (file)
@@ -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;
index 05d94f6ea5e09ef2ec0a859cd0054b45101872dc..64997c2d738e49b8f60784f6936b1127d1b986b2 100644 (file)
@@ -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());
index bb4f4d691cb2cd8fb56af53036766d5907015c30..4f99e89bc1c600b59c61ab82fe3995bb1ecd8969 100644 (file)
@@ -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;
 }