avoid GCC warning "suggest braces around empty body in an ‘else’ statement"

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2011-04-06 17:03:31 +00:00
parent 628e8d444c
commit 4c2ea5999b
2 changed files with 4 additions and 0 deletions

View File

@@ -601,7 +601,9 @@ void wxMenuItem::SetBitmap(const wxBitmap& bitmap)
if (m_kind == wxITEM_NORMAL) if (m_kind == wxITEM_NORMAL)
m_bitmap = bitmap; m_bitmap = bitmap;
else else
{
wxFAIL_MSG("only normal menu items can have bitmaps"); wxFAIL_MSG("only normal menu items can have bitmaps");
}
} }
void wxMenuItem::Check( bool check ) void wxMenuItem::Check( bool check )

View File

@@ -418,8 +418,10 @@ bool wxNotebook::InsertPage( size_t position,
pageData->m_image, false, false, m_padding); pageData->m_image, false, false, m_padding);
} }
else else
{
wxFAIL_MSG("invalid notebook imagelist"); wxFAIL_MSG("invalid notebook imagelist");
} }
}
/* set the label text */ /* set the label text */
pageData->m_label = gtk_label_new(wxGTK_CONV(wxStripMenuCodes(text))); pageData->m_label = gtk_label_new(wxGTK_CONV(wxStripMenuCodes(text)));