From 30cb85c307b4c1273791721a782337742ade222c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 4 Oct 2006 21:45:20 +0000 Subject: Moved generic utility stuff to new library "raul". git-svn-id: http://svn.drobilla.net/lad/ingen@156 a436a847-0d15-0410-975c-d299462d15a1 --- src/progs/ingenuity/BreadCrumbBox.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/progs/ingenuity/BreadCrumbBox.cpp') diff --git a/src/progs/ingenuity/BreadCrumbBox.cpp b/src/progs/ingenuity/BreadCrumbBox.cpp index 5fa5eb6e..88772953 100644 --- a/src/progs/ingenuity/BreadCrumbBox.cpp +++ b/src/progs/ingenuity/BreadCrumbBox.cpp @@ -28,14 +28,14 @@ BreadCrumbBox::BreadCrumbBox() } -CountedPtr +SharedPtr BreadCrumbBox::view(const Path& path) { for (std::list::const_iterator i = _breadcrumbs.begin(); i != _breadcrumbs.end(); ++i) if ((*i)->path() == path) return (*i)->view(); - return CountedPtr(); + return SharedPtr(); } @@ -45,7 +45,7 @@ BreadCrumbBox::view(const Path& path) * children preserved. */ void -BreadCrumbBox::build(Path path, CountedPtr view) +BreadCrumbBox::build(Path path, SharedPtr view) { bool old_enable_signal = _enable_signal; _enable_signal = false; @@ -130,10 +130,10 @@ BreadCrumbBox::build(Path path, CountedPtr view) */ BreadCrumb* BreadCrumbBox::create_crumb(const Path& path, - CountedPtr view) + SharedPtr view) { BreadCrumb* but = manage(new BreadCrumb(path, - (view && path == view->patch()->path()) ? view : CountedPtr())); + (view && path == view->patch()->path()) ? view : SharedPtr())); but->signal_toggled().connect(sigc::bind(sigc::mem_fun( this, &BreadCrumbBox::breadcrumb_clicked), but)); -- cgit v1.2.1