diff options
author | David Robillard <d@drobilla.net> | 2024-10-06 16:56:04 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-10-11 19:37:24 -0400 |
commit | 1ecbb458c9877cf18d0438449d8757fb713d46d2 (patch) | |
tree | 62696de1f35cef8188cc79abe1da3097d431f845 /src/gui/BreadCrumbs.hpp | |
parent | 9009631bdf6d1142a13335ececbc1f78daf3fdf0 (diff) | |
download | ingen-1ecbb458c9877cf18d0438449d8757fb713d46d2.tar.gz ingen-1ecbb458c9877cf18d0438449d8757fb713d46d2.tar.bz2 ingen-1ecbb458c9877cf18d0438449d8757fb713d46d2.zip |
Make more single-argument constructors explicit
Diffstat (limited to 'src/gui/BreadCrumbs.hpp')
-rw-r--r-- | src/gui/BreadCrumbs.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/BreadCrumbs.hpp b/src/gui/BreadCrumbs.hpp index 6501288d..931d2ba8 100644 --- a/src/gui/BreadCrumbs.hpp +++ b/src/gui/BreadCrumbs.hpp @@ -71,7 +71,7 @@ private: { public: BreadCrumb(const raul::Path& path, - const std::shared_ptr<GraphView>& view = nullptr) + const std::shared_ptr<GraphView>& view) : _path(path), _view(view) { assert(!view || view->graph()->path() == path); @@ -81,6 +81,10 @@ private: show_all(); } + explicit BreadCrumb(const raul::Path& path) + : BreadCrumb{path, nullptr} + {} + void set_view(const std::shared_ptr<GraphView>& view) { assert(!view || view->graph()->path() == _path); _view = view; |