corrected warnings when compiling with -Wall -W
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -72,6 +72,7 @@ wxPalette::wxPalette(int n, const unsigned char *red, const unsigned char *green
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxPalette::wxPalette(const wxPalette& palette)
|
wxPalette::wxPalette(const wxPalette& palette)
|
||||||
|
: wxGDIObject()
|
||||||
{
|
{
|
||||||
Ref(palette);
|
Ref(palette);
|
||||||
}
|
}
|
||||||
|
@@ -47,6 +47,7 @@ wxPropertyValue::wxPropertyValue(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxPropertyValue::wxPropertyValue(const wxPropertyValue& copyFrom)
|
wxPropertyValue::wxPropertyValue(const wxPropertyValue& copyFrom)
|
||||||
|
: wxObject()
|
||||||
{
|
{
|
||||||
m_value.string = (wxChar*) NULL;
|
m_value.string = (wxChar*) NULL;
|
||||||
m_modifiedFlag = FALSE;
|
m_modifiedFlag = FALSE;
|
||||||
@@ -834,6 +835,7 @@ wxProperty::wxProperty(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxProperty::wxProperty(wxProperty& copyFrom)
|
wxProperty::wxProperty(wxProperty& copyFrom)
|
||||||
|
: wxObject()
|
||||||
{
|
{
|
||||||
m_value = copyFrom.GetValue();
|
m_value = copyFrom.GetValue();
|
||||||
m_name = copyFrom.GetName();
|
m_name = copyFrom.GetName();
|
||||||
|
@@ -28,8 +28,8 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !(defined(__WXMSW__) || defined(__WXGTK__) || defined(__WXPM__)) || defined(__WXMAC__) || \
|
#if !(defined(__WXMSW__) || defined(__WXGTK__) || defined(__WXPM__)) || \
|
||||||
defined(__WXUNIVERSAL__)
|
defined(__WXMAC__) || defined(__WXUNIVERSAL__)
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/textctrl.h"
|
#include "wx/textctrl.h"
|
||||||
|
@@ -64,7 +64,6 @@ static pascal void wxMacListDefinition( short message, Boolean isSelected, Rect
|
|||||||
Cell cell, short dataOffset, short dataLength,
|
Cell cell, short dataOffset, short dataLength,
|
||||||
ListHandle listHandle )
|
ListHandle listHandle )
|
||||||
{
|
{
|
||||||
FontInfo fontInfo;
|
|
||||||
GrafPtr savePort;
|
GrafPtr savePort;
|
||||||
GrafPtr grafPtr;
|
GrafPtr grafPtr;
|
||||||
RgnHandle savedClipRegion;
|
RgnHandle savedClipRegion;
|
||||||
@@ -681,10 +680,10 @@ void wxListBox::MacSetSelection( int n , bool select )
|
|||||||
Cell cell = { 0 , 0 } ;
|
Cell cell = { 0 , 0 } ;
|
||||||
if ( ! (m_windowStyle & wxLB_MULTIPLE) )
|
if ( ! (m_windowStyle & wxLB_MULTIPLE) )
|
||||||
{
|
{
|
||||||
if ( LGetSelect( true , &cell , (ListHandle)m_macList ) )
|
if ( LGetSelect( true , &cell , (ListHandle)m_macList ) )
|
||||||
{
|
{
|
||||||
LSetSelect( false , cell , (ListHandle)m_macList ) ;
|
LSetSelect( false , cell , (ListHandle)m_macList ) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cell.v = n ;
|
cell.v = n ;
|
||||||
|
@@ -32,6 +32,7 @@ wxPenRefData::wxPenRefData()
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxPenRefData::wxPenRefData(const wxPenRefData& data)
|
wxPenRefData::wxPenRefData(const wxPenRefData& data)
|
||||||
|
: wxGDIRefData()
|
||||||
{
|
{
|
||||||
m_style = data.m_style;
|
m_style = data.m_style;
|
||||||
m_width = data.m_width;
|
m_width = data.m_width;
|
||||||
|
@@ -68,7 +68,6 @@ bool wxRadioButton::Create(wxWindow *parent, wxWindowID id,
|
|||||||
|
|
||||||
void wxRadioButton::SetValue(bool val)
|
void wxRadioButton::SetValue(bool val)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
wxRadioButton *cycle;
|
wxRadioButton *cycle;
|
||||||
if ( GetControlValue( (ControlHandle) m_macControl ) == val )
|
if ( GetControlValue( (ControlHandle) m_macControl ) == val )
|
||||||
return ;
|
return ;
|
||||||
|
@@ -64,7 +64,6 @@ static pascal void wxMacListDefinition( short message, Boolean isSelected, Rect
|
|||||||
Cell cell, short dataOffset, short dataLength,
|
Cell cell, short dataOffset, short dataLength,
|
||||||
ListHandle listHandle )
|
ListHandle listHandle )
|
||||||
{
|
{
|
||||||
FontInfo fontInfo;
|
|
||||||
GrafPtr savePort;
|
GrafPtr savePort;
|
||||||
GrafPtr grafPtr;
|
GrafPtr grafPtr;
|
||||||
RgnHandle savedClipRegion;
|
RgnHandle savedClipRegion;
|
||||||
@@ -681,10 +680,10 @@ void wxListBox::MacSetSelection( int n , bool select )
|
|||||||
Cell cell = { 0 , 0 } ;
|
Cell cell = { 0 , 0 } ;
|
||||||
if ( ! (m_windowStyle & wxLB_MULTIPLE) )
|
if ( ! (m_windowStyle & wxLB_MULTIPLE) )
|
||||||
{
|
{
|
||||||
if ( LGetSelect( true , &cell , (ListHandle)m_macList ) )
|
if ( LGetSelect( true , &cell , (ListHandle)m_macList ) )
|
||||||
{
|
{
|
||||||
LSetSelect( false , cell , (ListHandle)m_macList ) ;
|
LSetSelect( false , cell , (ListHandle)m_macList ) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cell.v = n ;
|
cell.v = n ;
|
||||||
|
@@ -32,6 +32,7 @@ wxPenRefData::wxPenRefData()
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxPenRefData::wxPenRefData(const wxPenRefData& data)
|
wxPenRefData::wxPenRefData(const wxPenRefData& data)
|
||||||
|
: wxGDIRefData()
|
||||||
{
|
{
|
||||||
m_style = data.m_style;
|
m_style = data.m_style;
|
||||||
m_width = data.m_width;
|
m_width = data.m_width;
|
||||||
|
@@ -68,7 +68,6 @@ bool wxRadioButton::Create(wxWindow *parent, wxWindowID id,
|
|||||||
|
|
||||||
void wxRadioButton::SetValue(bool val)
|
void wxRadioButton::SetValue(bool val)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
wxRadioButton *cycle;
|
wxRadioButton *cycle;
|
||||||
if ( GetControlValue( (ControlHandle) m_macControl ) == val )
|
if ( GetControlValue( (ControlHandle) m_macControl ) == val )
|
||||||
return ;
|
return ;
|
||||||
|
Reference in New Issue
Block a user