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:
@@ -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
|
||||
|
Reference in New Issue
Block a user