Warning fixes to most detailed warning output of OpenWatcom. Tested under Borland, DigitalMars and MinGW.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-10-04 20:25:15 +00:00
parent 9b0db4529f
commit 8f6eaec925
8 changed files with 20 additions and 37 deletions

View File

@@ -388,7 +388,14 @@ MyFrame::MyFrame(wxWindow *parent,
m_clrData.SetChooseFull(true); m_clrData.SetChooseFull(true);
for (int i = 0; i < 16; i++) for (int i = 0; i < 16; i++)
{ {
m_clrData.SetCustomColour(i, wxColour(i*16, i*16, i*16)); m_clrData.SetCustomColour(
i,
wxColour(
(unsigned char)(i*16),
(unsigned char)(i*16),
(unsigned char)(i*16)
)
);
} }
#endif // wxUSE_COLOURDLG #endif // wxUSE_COLOURDLG
@@ -446,7 +453,11 @@ void MyFrame::ChooseColourGeneric(wxCommandEvent& WXUNUSED(event))
data.SetChooseFull(true); data.SetChooseFull(true);
for (int i = 0; i < 16; i++) for (int i = 0; i < 16; i++)
{ {
wxColour colour(i*16, i*16, i*16); wxColour colour(
(unsigned char)(i*16),
(unsigned char)(i*16),
(unsigned char)(i*16)
);
data.SetCustomColour(i, colour); data.SetCustomColour(i, colour);
} }

View File

@@ -78,7 +78,7 @@ class ButtonWidgetsPage : public WidgetsPage
{ {
public: public:
ButtonWidgetsPage(wxNotebook *notebook, wxImageList *imaglist); ButtonWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
virtual ~ButtonWidgetsPage(); virtual ~ButtonWidgetsPage(){};
protected: protected:
// event handlers // event handlers
@@ -237,10 +237,6 @@ ButtonWidgetsPage::ButtonWidgetsPage(wxNotebook *notebook,
sizerTop->Fit(this); sizerTop->Fit(this);
} }
ButtonWidgetsPage::~ButtonWidgetsPage()
{
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// operations // operations
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -74,7 +74,7 @@ class CheckBoxWidgetsPage : public WidgetsPage
{ {
public: public:
CheckBoxWidgetsPage(wxNotebook *notebook, wxImageList *imaglist); CheckBoxWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
virtual ~CheckBoxWidgetsPage(); virtual ~CheckBoxWidgetsPage(){};
protected: protected:
// event handlers // event handlers
@@ -223,10 +223,6 @@ CheckBoxWidgetsPage::CheckBoxWidgetsPage(wxNotebook *notebook,
sizerTop->Fit(this); sizerTop->Fit(this);
} }
CheckBoxWidgetsPage::~CheckBoxWidgetsPage()
{
}
void CheckBoxWidgetsPage::Reset() void CheckBoxWidgetsPage::Reset()
{ {
m_chkRight->SetValue(false); m_chkRight->SetValue(false);

View File

@@ -77,7 +77,7 @@ class RadioWidgetsPage : public WidgetsPage
{ {
public: public:
RadioWidgetsPage(wxNotebook *notebook, wxImageList *imaglist); RadioWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
virtual ~RadioWidgetsPage(); virtual ~RadioWidgetsPage(){};
protected: protected:
// event handlers // event handlers
@@ -262,10 +262,6 @@ RadioWidgetsPage::RadioWidgetsPage(wxNotebook *notebook,
sizerTop->Fit(this); sizerTop->Fit(this);
} }
RadioWidgetsPage::~RadioWidgetsPage()
{
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// operations // operations
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -88,7 +88,7 @@ class SliderWidgetsPage : public WidgetsPage
{ {
public: public:
SliderWidgetsPage(wxNotebook *notebook, wxImageList *imaglist); SliderWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
virtual ~SliderWidgetsPage(); virtual ~SliderWidgetsPage(){};
protected: protected:
// event handlers // event handlers
@@ -313,10 +313,6 @@ SliderWidgetsPage::SliderWidgetsPage(wxNotebook *notebook,
sizerTop->Fit(this); sizerTop->Fit(this);
} }
SliderWidgetsPage::~SliderWidgetsPage()
{
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// operations // operations
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -72,7 +72,7 @@ class SpinBtnWidgetsPage : public WidgetsPage
{ {
public: public:
SpinBtnWidgetsPage(wxNotebook *notebook, wxImageList *imaglist); SpinBtnWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
virtual ~SpinBtnWidgetsPage(); virtual ~SpinBtnWidgetsPage(){};
protected: protected:
// event handlers // event handlers
@@ -251,10 +251,6 @@ SpinBtnWidgetsPage::SpinBtnWidgetsPage(wxNotebook *notebook,
sizerTop->Fit(this); sizerTop->Fit(this);
} }
SpinBtnWidgetsPage::~SpinBtnWidgetsPage()
{
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// operations // operations
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -140,7 +140,7 @@ class StaticWidgetsPage : public WidgetsPage
{ {
public: public:
StaticWidgetsPage(wxNotebook *notebook, wxImageList *imaglist); StaticWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
virtual ~StaticWidgetsPage(); virtual ~StaticWidgetsPage(){};
protected: protected:
// event handlers // event handlers
@@ -302,10 +302,6 @@ StaticWidgetsPage::StaticWidgetsPage(wxNotebook *notebook,
sizerTop->Fit(this); sizerTop->Fit(this);
} }
StaticWidgetsPage::~StaticWidgetsPage()
{
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// operations // operations
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -114,7 +114,7 @@ class TextWidgetsPage : public WidgetsPage
public: public:
// ctor(s) and dtor // ctor(s) and dtor
TextWidgetsPage(wxNotebook *notebook, wxImageList *imaglist); TextWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
virtual ~TextWidgetsPage(); virtual ~TextWidgetsPage(){};
protected: protected:
// create an info text contorl // create an info text contorl
@@ -499,10 +499,6 @@ TextWidgetsPage::TextWidgetsPage(wxNotebook *notebook, wxImageList *imaglist)
sizerTop->Fit(this); sizerTop->Fit(this);
} }
TextWidgetsPage::~TextWidgetsPage()
{
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// creation helpers // creation helpers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------