From 5df29be8fc53ecb656ec473b608779c9323a20ef Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 23 Mar 2009 20:11:39 +0000 Subject: use boost::dynamic_pointer_cast<> to avoid use of ::get() method git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4886 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libs') diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 567c16d142..426a5b3f2d 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -2340,7 +2340,7 @@ Session::route_solo_changed (void* src, boost::weak_ptr wpr) /* don't mess with busses */ - if (dynamic_cast((*i).get()) == 0) { + if (boost::dynamic_pointer_cast(*i) == 0) { continue; } @@ -2348,7 +2348,7 @@ Session::route_solo_changed (void* src, boost::weak_ptr wpr) /* don't mess with tracks */ - if (dynamic_cast((*i).get()) != 0) { + if (boost::dynamic_pointer_cast(*i) != 0) { continue; } } @@ -2431,7 +2431,7 @@ Session::update_route_solo_state () for (RouteList::iterator i = r->begin(); i != r->end(); ++i) { if ((*i)->soloed()) { mute = true; - if (dynamic_cast((*i).get())) { + if (boost::dynamic_pointer_cast(*i)) { is_track = true; } break; @@ -2476,7 +2476,7 @@ Session::modify_solo_mute (bool is_track, bool mute) /* only alter track solo mute */ - if (dynamic_cast((*i).get())) { + if (boost::dynamic_pointer_cast(*i)) { if ((*i)->soloed()) { (*i)->set_solo_mute (!mute); } else { @@ -2487,8 +2487,8 @@ Session::modify_solo_mute (bool is_track, bool mute) } else { /* only alter bus solo mute */ - - if (!dynamic_cast((*i).get())) { + + if (!boost::dynamic_pointer_cast(*i)) { if ((*i)->soloed()) { @@ -3602,7 +3602,7 @@ void Session::set_all_solo (bool yn) { shared_ptr r = routes.reader (); - + for (RouteList::iterator i = r->begin(); i != r->end(); ++i) { if (!(*i)->hidden()) { (*i)->set_solo (yn, this); -- cgit v1.2.3