Cleanup: Use const in previously committed function
This commit is contained in:
parent
323fd80aad
commit
b8a30c7664
|
@ -188,7 +188,7 @@ class AbstractTreeViewItem : public TreeViewItemContainer {
|
|||
/** Copy persistent state (e.g. is-collapsed flag, selection, etc.) from a matching item of the
|
||||
* last redraw to this item. If sub-classes introduce more advanced state they should override
|
||||
* this and make it update their state accordingly. */
|
||||
virtual void update_from_old(AbstractTreeViewItem &old);
|
||||
virtual void update_from_old(const AbstractTreeViewItem &old);
|
||||
|
||||
const AbstractTreeView &get_tree_view() const;
|
||||
int count_parents() const;
|
||||
|
|
|
@ -139,7 +139,7 @@ void AbstractTreeViewItem::on_activate()
|
|||
/* Do nothing by default. */
|
||||
}
|
||||
|
||||
void AbstractTreeViewItem::update_from_old(AbstractTreeViewItem &old)
|
||||
void AbstractTreeViewItem::update_from_old(const AbstractTreeViewItem &old)
|
||||
{
|
||||
is_open_ = old.is_open_;
|
||||
is_active_ = old.is_active_;
|
||||
|
|
Loading…
Reference in New Issue