summaryrefslogtreecommitdiffstats
path: root/src/gui/BreadCrumbs.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-10-06 16:56:04 -0400
committerDavid Robillard <d@drobilla.net>2024-10-11 19:37:24 -0400
commit1ecbb458c9877cf18d0438449d8757fb713d46d2 (patch)
tree62696de1f35cef8188cc79abe1da3097d431f845 /src/gui/BreadCrumbs.hpp
parent9009631bdf6d1142a13335ececbc1f78daf3fdf0 (diff)
downloadingen-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.hpp6
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;