From af82a06517db99d8c611edba20cb19900d0690a7 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 10 Oct 2019 14:34:20 -0600 Subject: [PATCH] make BusProfile argument to new Session constructor be const (and in associated call tree) --- libs/ardour/ardour/session.h | 4 ++-- libs/ardour/session.cc | 2 +- libs/ardour/session_state.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index ea0e4008db..f86cf63a05 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -205,7 +205,7 @@ public: Session (AudioEngine&, const std::string& fullpath, const std::string& snapshot_name, - BusProfile* bus_profile = 0, + BusProfile const * bus_profile = 0, std::string mix_template = ""); virtual ~Session (); @@ -1254,7 +1254,7 @@ protected: double speed() const { return _transport_speed; } private: - int create (const std::string& mix_template, BusProfile*); + int create (const std::string& mix_template, BusProfile const *); void destroy (); static guint _name_id_counter; diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 4214681753..469cf0b9b3 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -171,7 +171,7 @@ const uint32_t Session::session_end_shift = 0; Session::Session (AudioEngine &eng, const string& fullpath, const string& snapshot_name, - BusProfile* bus_profile, + BusProfile const * bus_profile, string mix_template) : _playlists (new SessionPlaylists) , _engine (eng) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index c9c61ba9d5..ebb3dd4292 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -573,7 +573,7 @@ Session::ensure_subdirs () * Caller must not hold process lock. */ int -Session::create (const string& session_template, BusProfile* bus_profile) +Session::create (const string& session_template, BusProfile const * bus_profile) { if (g_mkdir_with_parents (_path.c_str(), 0755) < 0) { error << string_compose(_("Session: cannot create session folder \"%1\" (%2)"), _path, strerror (errno)) << endmsg;