13
0

make BusProfile argument to new Session constructor be const (and in associated call tree)

This commit is contained in:
Paul Davis 2019-10-10 14:34:20 -06:00
parent 7f4e9fe211
commit af82a06517
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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;