Make wxTreeEvent::GetToolTip() const

This is not very important because this function is only used by wxWidgets
itself but it's still wrong to have a non-const trivial accessor like this.

See #17661.
This commit is contained in:
Vadim Zeitlin
2016-09-16 01:34:32 +02:00
parent cc710218e6
commit 6ad64a5d69

View File

@@ -229,9 +229,9 @@ public:
bool IsEditCancelled() const { return m_editCancelled; }
void SetEditCanceled(bool editCancelled) { m_editCancelled = editCancelled; }
// Set the tooltip for the item (for EVT\_TREE\_ITEM\_GETTOOLTIP events)
// Set the tooltip for the item (for EVT_TREE_ITEM_GETTOOLTIP events)
void SetToolTip(const wxString& toolTip) { m_label = toolTip; }
wxString GetToolTip() { return m_label; }
wxString GetToolTip() const { return m_label; }
private:
// not all of the members are used (or initialized) for all events