Cleanup: Use const in previously committed function

This commit is contained in:
Julian Eisel 2021-09-23 19:39:26 +02:00
parent 323fd80aad
commit b8a30c7664
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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_;