Fix some GCC 3.2 -O2 warnings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -126,8 +126,7 @@ public:
|
|||||||
|
|
||||||
wxVectorBase& operator = (const wxVectorBase& vb)
|
wxVectorBase& operator = (const wxVectorBase& vb)
|
||||||
{
|
{
|
||||||
bool rc = copy(vb);
|
wxCHECK(copy(vb), *this);
|
||||||
wxASSERT(rc);
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -146,8 +145,7 @@ public:\
|
|||||||
cls() {}\
|
cls() {}\
|
||||||
cls(const cls& c)\
|
cls(const cls& c)\
|
||||||
{\
|
{\
|
||||||
bool rc = copy(c);\
|
wxCHECK2(copy(c), return);\
|
||||||
wxASSERT(rc);\
|
|
||||||
}\
|
}\
|
||||||
~cls()\
|
~cls()\
|
||||||
{\
|
{\
|
||||||
@@ -161,8 +159,7 @@ class exp cls : public wxVectorBase\
|
|||||||
public:\
|
public:\
|
||||||
void push_back(const obj& o)\
|
void push_back(const obj& o)\
|
||||||
{\
|
{\
|
||||||
bool rc = Alloc(size() + 1);\
|
wxCHECK2(Alloc(size() + 1), return);\
|
||||||
wxASSERT(rc);\
|
|
||||||
Append(new obj(o));\
|
Append(new obj(o));\
|
||||||
};\
|
};\
|
||||||
void pop_back()\
|
void pop_back()\
|
||||||
|
@@ -285,7 +285,7 @@ bool wxTextCtrlBase::EmulateKeyPress(const wxKeyEvent& event)
|
|||||||
{
|
{
|
||||||
// the generic version is unused in wxMSW
|
// the generic version is unused in wxMSW
|
||||||
#ifndef __WIN32__
|
#ifndef __WIN32__
|
||||||
wxChar ch;
|
wxChar ch = 0;
|
||||||
int keycode = event.GetKeyCode();
|
int keycode = event.GetKeyCode();
|
||||||
switch ( keycode )
|
switch ( keycode )
|
||||||
{
|
{
|
||||||
|
@@ -151,9 +151,11 @@ void wxFileSelOk(Widget WXUNUSED(fs), XtPointer WXUNUSED(client_data), XmFileSel
|
|||||||
|
|
||||||
static wxString ParseWildCard( const wxString& wild )
|
static wxString ParseWildCard( const wxString& wild )
|
||||||
{
|
{
|
||||||
|
#ifdef __WXDEBUG__
|
||||||
static const wxChar* msg =
|
static const wxChar* msg =
|
||||||
_T("Motif file dialog does not understand this ")
|
_T("Motif file dialog does not understand this ")
|
||||||
_T("wildcard syntax");
|
_T("wildcard syntax");
|
||||||
|
#endif
|
||||||
|
|
||||||
wxStringTokenizer tok( wild, _T("|") );
|
wxStringTokenizer tok( wild, _T("|") );
|
||||||
|
|
||||||
|
@@ -183,7 +183,7 @@ bool wxArrowButton::Create( wxSpinButton* parent, wxWindowID id,
|
|||||||
ArrowDirection d,
|
ArrowDirection d,
|
||||||
const wxPoint& pos, const wxSize& size )
|
const wxPoint& pos, const wxSize& size )
|
||||||
{
|
{
|
||||||
int arrow_dir;
|
int arrow_dir = XmARROW_UP;
|
||||||
|
|
||||||
switch( d )
|
switch( d )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user