summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-10-10 14:34:20 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2019-10-10 16:52:00 -0600
commitaf82a06517db99d8c611edba20cb19900d0690a7 (patch)
tree92b89748a4500070ebe9269e32025a6ed46ab90c /libs
parent7f4e9fe211c1ec837b8159eeaa691b593784ab6c (diff)
make BusProfile argument to new Session constructor be const (and in associated call tree)
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/ardour/session.h4
-rw-r--r--libs/ardour/session.cc2
-rw-r--r--libs/ardour/session_state.cc2
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;