summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-05-17 15:26:35 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-05-31 15:30:43 -0400
commit7f4880ad12222b113e305fa2f690bc6b113ab975 (patch)
treef20b05cd87caa66c28f52c23f59355b45aaeb916
parent0d9433aef6661c4d439a98e11015b9cb0de0a206 (diff)
use correct types in arguments to Session::get_remote_nth...()
-rw-r--r--libs/ardour/ardour/session.h4
-rw-r--r--libs/ardour/session.cc6
2 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h
index fbac73ae75..f35e3b6f19 100644
--- a/libs/ardour/ardour/session.h
+++ b/libs/ardour/ardour/session.h
@@ -311,8 +311,8 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop
bool io_name_is_legal (const std::string&) const;
boost::shared_ptr<Route> route_by_name (std::string) const;
boost::shared_ptr<Route> route_by_id (PBD::ID) const;
- boost::shared_ptr<Stripable> get_remote_nth_stripable (uint16_t n, PresentationInfo::Flag) const;
- boost::shared_ptr<Route> get_remote_nth_route (uint16_t n) const;
+ boost::shared_ptr<Stripable> get_remote_nth_stripable (PresentationInfo::order_t n, PresentationInfo::Flag) const;
+ boost::shared_ptr<Route> get_remote_nth_route (PresentationInfo::order_t n) const;
boost::shared_ptr<Route> route_by_selected_count (uint32_t cnt) const;
boost::shared_ptr<Track> track_by_diskstream_id (PBD::ID) const;
void routes_using_input_from (const std::string& str, RouteList& rl);
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc
index e24d0a3ef0..6caa41e9ed 100644
--- a/libs/ardour/session.cc
+++ b/libs/ardour/session.cc
@@ -4208,7 +4208,7 @@ Session::track_by_diskstream_id (PBD::ID id) const
}
boost::shared_ptr<Route>
-Session::get_remote_nth_route (uint16_t n) const
+Session::get_remote_nth_route (PresentationInfo::order_t n) const
{
return boost::dynamic_pointer_cast<Route> (get_remote_nth_stripable (n, PresentationInfo::Route));
}
@@ -4220,10 +4220,10 @@ struct GlobalPresentationOrderSorter {
};
boost::shared_ptr<Stripable>
-Session::get_remote_nth_stripable (uint16_t n, PresentationInfo::Flag flags) const
+Session::get_remote_nth_stripable (PresentationInfo::order_t n, PresentationInfo::Flag flags) const
{
StripableList sl;
- uint32_t match_cnt = 0;
+ PresentationInfo::order_t match_cnt = 0;
/* API is one-based, so adjust n */