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:
@@ -601,8 +601,10 @@ 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 )
|
||||||
{
|
{
|
||||||
|
@@ -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)));
|
||||||
|
Reference in New Issue
Block a user