diff options
author | Julian Eisel <julian@blender.org> | 2021-10-27 13:05:23 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-10-27 13:14:47 +0300 |
commit | e16bc136f92bd166219ef6e21bcd1a303b335aa0 (patch) | |
tree | 09eda6343dd66171e2406fed8f9b7ac1621f112e /source/blender/editors/include | |
parent | 933215d6daa4d07ccad186cf9b488cf4a02f5935 (diff) |
Cleanup: Make UI tree-view item constructor explicit
Constructors that can be called with a single argument should be
explicit, unless there's a reason not to, to avoid unintended
constructions.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/UI_tree_view.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/include/UI_tree_view.hh b/source/blender/editors/include/UI_tree_view.hh index fb0304060c9..5a7f16c4db6 100644 --- a/source/blender/editors/include/UI_tree_view.hh +++ b/source/blender/editors/include/UI_tree_view.hh @@ -401,7 +401,7 @@ class BasicTreeViewItem : public AbstractTreeViewItem { using ActivateFn = std::function<void(BasicTreeViewItem &new_active)>; BIFIconID icon; - BasicTreeViewItem(StringRef label, BIFIconID icon = ICON_NONE); + explicit BasicTreeViewItem(StringRef label, BIFIconID icon = ICON_NONE); void build_row(uiLayout &row) override; void on_activate(ActivateFn fn); |