X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fredirect_box.cc;h=fcd04c9bd7c51dd4bc7e676af9d5d36f56c12612;hb=2592a320d42dd4a157ee16101c042d875d3142be;hp=48562f1ffb6a33dcb1fea82de9f43c34cb8eb175;hpb=9bc22f6f86deb4258faf298b45cb117f09af8f96;p=ardour.git diff --git a/gtk2_ardour/redirect_box.cc b/gtk2_ardour/redirect_box.cc index 48562f1ffb..fcd04c9bd7 100644 --- a/gtk2_ardour/redirect_box.cc +++ b/gtk2_ardour/redirect_box.cc @@ -156,9 +156,9 @@ RedirectBox::~RedirectBox () } void -RedirectBox::object_drop (string type, uint32_t cnt, void** ptr) +RedirectBox::object_drop (string type, uint32_t cnt, const boost::shared_ptr* ptr) { - if (type != "redirects" || cnt == 0 || ptr == 0) { + if (type != "redirects" || cnt == 0 || !ptr) { return; } @@ -167,7 +167,7 @@ RedirectBox::object_drop (string type, uint32_t cnt, void** ptr) list > redirects; for (uint32_t n = 0; n < cnt; ++n) { - redirects.push_back (boost::shared_ptr ((Redirect*) ptr[n])); + redirects.push_back (ptr[n]); } paste_redirect_list (redirects);