]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected warnings when compiling with -Wall -W
authorGilles Depeyrot <gilles_depeyrot@mac.com>
Fri, 3 May 2002 20:20:55 +0000 (20:20 +0000)
committerGilles Depeyrot <gilles_depeyrot@mac.com>
Fri, 3 May 2002 20:20:55 +0000 (20:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/paletteg.cpp
src/generic/prop.cpp
src/generic/spinctlg.cpp
src/mac/carbon/listbox.cpp
src/mac/carbon/pen.cpp
src/mac/carbon/radiobut.cpp
src/mac/listbox.cpp
src/mac/pen.cpp
src/mac/radiobut.cpp

index ce66f891400ec06a672f09d6e525a14df39af9e6..336afdc2bae79fcbd0aa5feee72cf8b5fd99a607 100644 (file)
@@ -72,6 +72,7 @@ wxPalette::wxPalette(int n, const unsigned char *red, const unsigned char *green
 }
 
 wxPalette::wxPalette(const wxPalette& palette)
+    : wxGDIObject()
 {
     Ref(palette);
 }
index 028427d935ec4ee18cfce48a87bf533d08e98225..cca2ecdd45191a1cea1297ca05a2a5e5ec51e5e5 100644 (file)
@@ -47,6 +47,7 @@ wxPropertyValue::wxPropertyValue(void)
 }
 
 wxPropertyValue::wxPropertyValue(const wxPropertyValue& copyFrom)
+    : wxObject()
 {
   m_value.string = (wxChar*) NULL;
   m_modifiedFlag = FALSE;
@@ -834,6 +835,7 @@ wxProperty::wxProperty(void)
 }
 
 wxProperty::wxProperty(wxProperty& copyFrom)
+    : wxObject()
 {
   m_value = copyFrom.GetValue();
   m_name = copyFrom.GetName();
index b8c1f48b40af26e9f1a27154b42c491fad174a7b..c0dca645a1f22da70b76ff441f22ae6b51a8d705 100644 (file)
@@ -28,8 +28,8 @@
     #pragma hdrstop
 #endif
 
-#if !(defined(__WXMSW__) || defined(__WXGTK__) || defined(__WXPM__)) || defined(__WXMAC__) || \
-    defined(__WXUNIVERSAL__)
+#if !(defined(__WXMSW__) || defined(__WXGTK__) || defined(__WXPM__)) || \
+    defined(__WXMAC__) || defined(__WXUNIVERSAL__)
 
 #ifndef WX_PRECOMP
     #include "wx/textctrl.h"
@@ -134,7 +134,7 @@ BEGIN_EVENT_TABLE(wxSpinCtrlButton, wxSpinButton)
 END_EVENT_TABLE()
 
 IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrl, wxControl)
-
+    
 // ============================================================================
 // implementation
 // ============================================================================
index 58cf2550c788f72e9ee6761ac9254421030faf04..9a10e64d2976092fc2e4de20157a02a626ca429f 100644 (file)
@@ -64,7 +64,6 @@ static pascal void wxMacListDefinition( short message, Boolean isSelected, Rect
                                      Cell cell, short dataOffset, short dataLength,
                                      ListHandle listHandle )
 {
-    FontInfo fontInfo;
     GrafPtr savePort;
     GrafPtr grafPtr;
     RgnHandle savedClipRegion;
@@ -681,10 +680,10 @@ void wxListBox::MacSetSelection( int n , bool select )
     Cell cell = { 0 , 0 } ;
     if ( ! (m_windowStyle & wxLB_MULTIPLE) )
     {
-    if ( LGetSelect( true , &cell , (ListHandle)m_macList ) )
-    {
-        LSetSelect( false , cell , (ListHandle)m_macList ) ;
-    }
+        if ( LGetSelect( true , &cell , (ListHandle)m_macList ) )
+        {
+            LSetSelect( false , cell , (ListHandle)m_macList ) ;
+        }
     }
     
     cell.v = n ;
index 732889b467f7e8300b17e222840811b2ee248936..bb60cfae6558337dee4efaf72cb3616a3926e485 100644 (file)
@@ -32,6 +32,7 @@ wxPenRefData::wxPenRefData()
 }
 
 wxPenRefData::wxPenRefData(const wxPenRefData& data)
+    : wxGDIRefData()
 {
     m_style = data.m_style;
     m_width = data.m_width;
index 0d060bdb956755cb2ac482a3fdef6e435153d28b..7fcaaf579dc4e10a894437465532b75586b88d2f 100644 (file)
@@ -68,7 +68,6 @@ bool wxRadioButton::Create(wxWindow *parent, wxWindowID id,
 
 void wxRadioButton::SetValue(bool val)
 {
-       int i;
        wxRadioButton *cycle;
          if ( GetControlValue( (ControlHandle) m_macControl ) == val )
            return ;
index 58cf2550c788f72e9ee6761ac9254421030faf04..9a10e64d2976092fc2e4de20157a02a626ca429f 100644 (file)
@@ -64,7 +64,6 @@ static pascal void wxMacListDefinition( short message, Boolean isSelected, Rect
                                      Cell cell, short dataOffset, short dataLength,
                                      ListHandle listHandle )
 {
-    FontInfo fontInfo;
     GrafPtr savePort;
     GrafPtr grafPtr;
     RgnHandle savedClipRegion;
@@ -681,10 +680,10 @@ void wxListBox::MacSetSelection( int n , bool select )
     Cell cell = { 0 , 0 } ;
     if ( ! (m_windowStyle & wxLB_MULTIPLE) )
     {
-    if ( LGetSelect( true , &cell , (ListHandle)m_macList ) )
-    {
-        LSetSelect( false , cell , (ListHandle)m_macList ) ;
-    }
+        if ( LGetSelect( true , &cell , (ListHandle)m_macList ) )
+        {
+            LSetSelect( false , cell , (ListHandle)m_macList ) ;
+        }
     }
     
     cell.v = n ;
index 732889b467f7e8300b17e222840811b2ee248936..bb60cfae6558337dee4efaf72cb3616a3926e485 100644 (file)
@@ -32,6 +32,7 @@ wxPenRefData::wxPenRefData()
 }
 
 wxPenRefData::wxPenRefData(const wxPenRefData& data)
+    : wxGDIRefData()
 {
     m_style = data.m_style;
     m_width = data.m_width;
index 0d060bdb956755cb2ac482a3fdef6e435153d28b..7fcaaf579dc4e10a894437465532b75586b88d2f 100644 (file)
@@ -68,7 +68,6 @@ bool wxRadioButton::Create(wxWindow *parent, wxWindowID id,
 
 void wxRadioButton::SetValue(bool val)
 {
-       int i;
        wxRadioButton *cycle;
          if ( GetControlValue( (ControlHandle) m_macControl ) == val )
            return ;