Add non-const overload for GetToolByPos()

See #16763
This commit is contained in:
Paul Cornett
2017-11-25 10:57:23 -08:00
parent ecfcab41e5
commit 23e3323655
2 changed files with 3 additions and 0 deletions

View File

@@ -484,6 +484,7 @@ public:
// these methods allow to access tools by their index in the toolbar
size_t GetToolsCount() const { return m_tools.GetCount(); }
wxToolBarToolBase *GetToolByPos(int pos) { return m_tools[pos]; }
const wxToolBarToolBase *GetToolByPos(int pos) const { return m_tools[pos]; }
#if WXWIN_COMPATIBILITY_2_8