wxToolBarTool::IsXXX() should return bool, not int
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -120,9 +120,9 @@ public:
|
|||||||
wxToolBarBase *GetToolBar() const { return m_tbar; }
|
wxToolBarBase *GetToolBar() const { return m_tbar; }
|
||||||
|
|
||||||
// style
|
// style
|
||||||
int IsButton() const { return m_toolStyle == wxTOOL_STYLE_BUTTON; }
|
bool IsButton() const { return m_toolStyle == wxTOOL_STYLE_BUTTON; }
|
||||||
int IsControl() const { return m_toolStyle == wxTOOL_STYLE_CONTROL; }
|
bool IsControl() const { return m_toolStyle == wxTOOL_STYLE_CONTROL; }
|
||||||
int IsSeparator() const { return m_toolStyle == wxTOOL_STYLE_SEPARATOR; }
|
bool IsSeparator() const { return m_toolStyle == wxTOOL_STYLE_SEPARATOR; }
|
||||||
int GetStyle() const { return m_toolStyle; }
|
int GetStyle() const { return m_toolStyle; }
|
||||||
|
|
||||||
// state
|
// state
|
||||||
|
Reference in New Issue
Block a user