]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/spinbutt.cpp
Fix crash in wxDC::GetMultiLineTextExtent() after last commit.
[wxWidgets.git] / src / osx / carbon / spinbutt.cpp
index 219d9f5c1b6e783d146c236c7a175ea995ed1238..6b7a522a349f42001d6ecce61cfb0cae99c673e8 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
 /////////////////////////////////////////////////////////////////////////////
-// Name:        spinbutt.cpp
+// Name:        src/osx/carbon/spinbutt.cpp
 // Purpose:     wxSpinButton
 // Author:      Stefan Csomor
 // Modified by:
 // Purpose:     wxSpinButton
 // Author:      Stefan Csomor
 // Modified by:
 #include "wx/osx/private.h"
 
 
 #include "wx/osx/private.h"
 
 
-wxWidgetImplType* wxWidgetImpl::CreateSpinButton( wxWindowMac* wxpeer, 
-                                    wxWindowMac* parent, 
-                                    wxWindowID id, 
+wxWidgetImplType* wxWidgetImpl::CreateSpinButton( wxWindowMac* wxpeer,
+                                    wxWindowMac* parent,
+                                    wxWindowID WXUNUSED(id),
                                     wxInt32 value,
                                     wxInt32 minimum,
                                     wxInt32 maximum,
                                     wxInt32 value,
                                     wxInt32 minimum,
                                     wxInt32 maximum,
-                                    const wxPoint& pos, 
+                                    const wxPoint& pos,
                                     const wxSize& size,
                                     const wxSize& size,
-                                    long style, 
-                                    long extraStyle)
+                                    long WXUNUSED(style),
+                                    long WXUNUSED(extraStyle))
 {
     Rect bounds = wxMacGetBoundsForControl( wxpeer , pos , size );
 
     wxMacControl* peer = new wxMacControl( wxpeer );
     OSStatus err = CreateLittleArrowsControl(
 {
     Rect bounds = wxMacGetBoundsForControl( wxpeer , pos , size );
 
     wxMacControl* peer = new wxMacControl( wxpeer );
     OSStatus err = CreateLittleArrowsControl(
-        MAC_WXHWND(parent->MacGetTopLevelWindowRef()), &bounds, value, 
+        MAC_WXHWND(parent->MacGetTopLevelWindowRef()), &bounds, value,
         minimum, maximum, 1, peer->GetControlRefAddr() );
     verify_noerr( err );
 
         minimum, maximum, 1, peer->GetControlRefAddr() );
     verify_noerr( err );