[Bf-blender-cvs] [b8a30c7664a] master: Cleanup: Use const in previously committed function
Julian Eisel
noreply at git.blender.org
Thu Sep 23 19:39:56 CEST 2021
Commit: b8a30c7664a1871fb3dae8805c21b7f24ca413d3
Author: Julian Eisel
Date: Thu Sep 23 19:39:26 2021 +0200
Branches: master
https://developer.blender.org/rBb8a30c7664a1871fb3dae8805c21b7f24ca413d3
Cleanup: Use const in previously committed function
===================================================================
M source/blender/editors/include/UI_tree_view.hh
M source/blender/editors/interface/tree_view.cc
===================================================================
diff --git a/source/blender/editors/include/UI_tree_view.hh b/source/blender/editors/include/UI_tree_view.hh
index 51b8e65521a..dd1a0af2dc0 100644
--- a/source/blender/editors/include/UI_tree_view.hh
+++ b/source/blender/editors/include/UI_tree_view.hh
@@ -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;
diff --git a/source/blender/editors/interface/tree_view.cc b/source/blender/editors/interface/tree_view.cc
index c5770e808fa..c2ecab08ace 100644
--- a/source/blender/editors/interface/tree_view.cc
+++ b/source/blender/editors/interface/tree_view.cc
@@ -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_;
More information about the Bf-blender-cvs
mailing list