From e16bc136f92bd166219ef6e21bcd1a303b335aa0 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Wed, 27 Oct 2021 12:05:23 +0200 Subject: 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. --- source/blender/editors/include/UI_tree_view.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/include') 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; 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); -- cgit v1.2.3