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@29813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-10-12 19:29:12 +00:00
parent 8e32e729a5
commit ecd9653bf3
10 changed files with 278 additions and 304 deletions

View File

@@ -38,7 +38,7 @@ class WXDLLEXPORT wxChoiceBase : public wxControlWithItems
{
public:
wxChoiceBase() { }
virtual ~wxChoiceBase();
virtual ~wxChoiceBase(){};
// all generic methods are in wxControlWithItems

View File

@@ -30,7 +30,7 @@ class WXDLLEXPORT wxCommand : public wxObject
{
public:
wxCommand(bool canUndoIt = false, const wxString& name = wxEmptyString);
~wxCommand();
~wxCommand(){};
// Override this to perform a command
virtual bool Do() = 0;

View File

@@ -30,7 +30,7 @@ public:
#else
wxDataInputStream(wxInputStream& s);
#endif
~wxDataInputStream();
~wxDataInputStream(){};
bool IsOk() { return m_input->IsOk(); }
@@ -78,7 +78,7 @@ public:
#else
wxDataOutputStream(wxOutputStream& s);
#endif
~wxDataOutputStream();
~wxDataOutputStream(){};
bool IsOk() { return m_output->IsOk(); }

View File

@@ -123,7 +123,7 @@ class WXDLLIMPEXP_BASE wxLog
{
public:
// ctor
wxLog();
wxLog(){};
// Internal buffer.

View File

@@ -64,7 +64,7 @@ public:
#endif // Unicode/ANSI
// virtual dtor for any base class
virtual ~wxMBConv();
virtual ~wxMBConv(){};
};
// ----------------------------------------------------------------------------

View File

@@ -38,11 +38,6 @@
// implementation
// ============================================================================
wxChoiceBase::~wxChoiceBase()
{
// this destructor is required for Darwin
}
// ----------------------------------------------------------------------------
// selection
// ----------------------------------------------------------------------------

View File

@@ -53,10 +53,6 @@ wxCommand::wxCommand(bool canUndoIt, const wxString& name)
m_commandName = name;
}
wxCommand::~wxCommand()
{
}
// ----------------------------------------------------------------------------
// Command processor
// ----------------------------------------------------------------------------

View File

@@ -38,10 +38,6 @@ wxDataInputStream::wxDataInputStream(wxInputStream& s)
{
}
wxDataInputStream::~wxDataInputStream()
{
}
wxUint64 wxDataInputStream::Read64()
{
wxUint64 i64;
@@ -277,10 +273,6 @@ wxDataOutputStream::wxDataOutputStream(wxOutputStream& s)
{
}
wxDataOutputStream::~wxDataOutputStream()
{
}
void wxDataOutputStream::Write64(wxUint64 i)
{
wxUint64 i64;

View File

@@ -367,10 +367,6 @@ void WXDLLEXPORT wxLogSysError(long lErrCode, const wxChar *szFormat, ...)
// wxLog class implementation
// ----------------------------------------------------------------------------
wxLog::wxLog()
{
}
wxChar *wxLog::SetLogBuffer( wxChar *buf, size_t size)
{
wxChar *oldbuf = s_szBuf;

View File

@@ -166,11 +166,6 @@ static size_t decode_utf16(const wxUint16* input, wxUint32& output)
// wxMBConv
// ----------------------------------------------------------------------------
wxMBConv::~wxMBConv()
{
// nothing to do here
}
const wxWCharBuffer wxMBConv::cMB2WC(const char *psz) const
{
if ( psz )