Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -48,7 +48,7 @@ public:
|
|||||||
// ctor & dtor
|
// ctor & dtor
|
||||||
CheckListBoxFrame(wxFrame *frame, const wxChar *title,
|
CheckListBoxFrame(wxFrame *frame, const wxChar *title,
|
||||||
int x, int y, int w, int h);
|
int x, int y, int w, int h);
|
||||||
virtual ~CheckListBoxFrame();
|
virtual ~CheckListBoxFrame(){};
|
||||||
|
|
||||||
// notifications
|
// notifications
|
||||||
void OnQuit(wxCommandEvent& event);
|
void OnQuit(wxCommandEvent& event);
|
||||||
@@ -243,10 +243,6 @@ void CheckListBoxFrame::CreateCheckListbox(long flags)
|
|||||||
m_pListBox->Select(3);
|
m_pListBox->Select(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckListBoxFrame::~CheckListBoxFrame()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void CheckListBoxFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
|
void CheckListBoxFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
Close(true);
|
Close(true);
|
||||||
|
@@ -345,10 +345,10 @@ protected:
|
|||||||
|
|
||||||
struct ShapeDump
|
struct ShapeDump
|
||||||
{
|
{
|
||||||
int x, y, // position
|
wxCoord x, y, // position
|
||||||
w, h, // size
|
w, h; // size
|
||||||
r, g, b, // colour
|
int k; // kind
|
||||||
k; // kind
|
unsigned char r, g, b; // colour
|
||||||
};
|
};
|
||||||
|
|
||||||
wxPoint m_pos;
|
wxPoint m_pos;
|
||||||
@@ -1645,7 +1645,7 @@ void DnDShapeDialog::OnColour(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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -36,10 +36,6 @@
|
|||||||
#include "view.h"
|
#include "view.h"
|
||||||
IMPLEMENT_DYNAMIC_CLASS(DrawingDocument, wxDocument)
|
IMPLEMENT_DYNAMIC_CLASS(DrawingDocument, wxDocument)
|
||||||
|
|
||||||
DrawingDocument::DrawingDocument(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
DrawingDocument::~DrawingDocument(void)
|
DrawingDocument::~DrawingDocument(void)
|
||||||
{
|
{
|
||||||
WX_CLEAR_LIST(wxList, doodleSegments);
|
WX_CLEAR_LIST(wxList, doodleSegments);
|
||||||
@@ -127,10 +123,6 @@ wxInputStream& DrawingDocument::LoadObject(wxInputStream& stream)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DoodleSegment::DoodleSegment(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
DoodleSegment::DoodleSegment(DoodleSegment& seg)
|
DoodleSegment::DoodleSegment(DoodleSegment& seg)
|
||||||
{
|
{
|
||||||
wxList::compatibility_iterator node = seg.lines.GetFirst();
|
wxList::compatibility_iterator node = seg.lines.GetFirst();
|
||||||
|
@@ -35,7 +35,7 @@ class DoodleSegment: public wxObject
|
|||||||
public:
|
public:
|
||||||
wxList lines;
|
wxList lines;
|
||||||
|
|
||||||
DoodleSegment(void);
|
DoodleSegment(void){};
|
||||||
DoodleSegment(DoodleSegment& seg);
|
DoodleSegment(DoodleSegment& seg);
|
||||||
~DoodleSegment(void);
|
~DoodleSegment(void);
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ private:
|
|||||||
public:
|
public:
|
||||||
wxList doodleSegments;
|
wxList doodleSegments;
|
||||||
|
|
||||||
DrawingDocument(void);
|
DrawingDocument(void){};
|
||||||
~DrawingDocument(void);
|
~DrawingDocument(void);
|
||||||
|
|
||||||
#if wxUSE_STD_IOSTREAM
|
#if wxUSE_STD_IOSTREAM
|
||||||
|
@@ -34,10 +34,6 @@
|
|||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(DrawingDocument, wxDocument)
|
IMPLEMENT_DYNAMIC_CLASS(DrawingDocument, wxDocument)
|
||||||
|
|
||||||
DrawingDocument::DrawingDocument(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
DrawingDocument::~DrawingDocument(void)
|
DrawingDocument::~DrawingDocument(void)
|
||||||
{
|
{
|
||||||
WX_CLEAR_LIST(wxList, doodleSegments);
|
WX_CLEAR_LIST(wxList, doodleSegments);
|
||||||
@@ -124,9 +120,6 @@ wxInputStream& DrawingDocument::LoadObject(wxInputStream& stream)
|
|||||||
return stream;
|
return stream;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
DoodleSegment::DoodleSegment(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
DoodleSegment::DoodleSegment(DoodleSegment& seg)
|
DoodleSegment::DoodleSegment(DoodleSegment& seg)
|
||||||
{
|
{
|
||||||
|
@@ -35,7 +35,7 @@ class DoodleSegment: public wxObject
|
|||||||
public:
|
public:
|
||||||
wxList lines;
|
wxList lines;
|
||||||
|
|
||||||
DoodleSegment(void);
|
DoodleSegment(void){};
|
||||||
DoodleSegment(DoodleSegment& seg);
|
DoodleSegment(DoodleSegment& seg);
|
||||||
~DoodleSegment(void);
|
~DoodleSegment(void);
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ class DrawingDocument: public wxDocument
|
|||||||
public:
|
public:
|
||||||
wxList doodleSegments;
|
wxList doodleSegments;
|
||||||
|
|
||||||
DrawingDocument(void);
|
DrawingDocument(void){};
|
||||||
~DrawingDocument(void);
|
~DrawingDocument(void);
|
||||||
|
|
||||||
#if wxUSE_STD_IOSTREAM
|
#if wxUSE_STD_IOSTREAM
|
||||||
|
Reference in New Issue
Block a user