fix warnings about empty controlling statement in release build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-03-23 13:10:19 +00:00
parent 63b459df53
commit 9053c7b9c1

View File

@@ -152,14 +152,14 @@ public:
wxASSERT_MSG( (style & wxID_OK) != wxID_OK, wxASSERT_MSG( (style & wxID_OK) != wxID_OK,
"wxMessageBox: Did you mean wxOK (and not wxID_OK)?" ); "wxMessageBox: Did you mean wxOK (and not wxID_OK)?" );
if ((style & wxNO_DEFAULT) != 0 && (style & wxNO) == 0) wxASSERT_MSG( !(style & wxNO_DEFAULT) || (style & wxNO),
wxFAIL_MSG("wxNO_DEFAULT is invalid without wxNO"); "wxNO_DEFAULT is invalid without wxNO" );
if ((style & wxCANCEL_DEFAULT) != 0 && (style & wxCANCEL) == 0) wxASSERT_MSG( !(style & wxCANCEL_DEFAULT) || (style & wxCANCEL),
wxFAIL_MSG("wxCANCEL_DEFAULT is invalid without wxCANCEL"); "wxCANCEL_DEFAULT is invalid without wxCANCEL" );
if ((style & wxCANCEL_DEFAULT) != 0 && (style & wxNO_DEFAULT) != 0) wxASSERT_MSG( !(style & wxCANCEL_DEFAULT) || !(style & wxNO),
wxFAIL_MSG("only one default button can be specified"); "only one default button can be specified" );
m_dialogStyle = style; m_dialogStyle = style;
} }