make BusProfile argument to new Session constructor be const (and in associated call tree)
This commit is contained in:
parent
7f4e9fe211
commit
af82a06517
@ -205,7 +205,7 @@ public:
|
|||||||
Session (AudioEngine&,
|
Session (AudioEngine&,
|
||||||
const std::string& fullpath,
|
const std::string& fullpath,
|
||||||
const std::string& snapshot_name,
|
const std::string& snapshot_name,
|
||||||
BusProfile* bus_profile = 0,
|
BusProfile const * bus_profile = 0,
|
||||||
std::string mix_template = "");
|
std::string mix_template = "");
|
||||||
|
|
||||||
virtual ~Session ();
|
virtual ~Session ();
|
||||||
@ -1254,7 +1254,7 @@ protected:
|
|||||||
double speed() const { return _transport_speed; }
|
double speed() const { return _transport_speed; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int create (const std::string& mix_template, BusProfile*);
|
int create (const std::string& mix_template, BusProfile const *);
|
||||||
void destroy ();
|
void destroy ();
|
||||||
|
|
||||||
static guint _name_id_counter;
|
static guint _name_id_counter;
|
||||||
|
@ -171,7 +171,7 @@ const uint32_t Session::session_end_shift = 0;
|
|||||||
Session::Session (AudioEngine &eng,
|
Session::Session (AudioEngine &eng,
|
||||||
const string& fullpath,
|
const string& fullpath,
|
||||||
const string& snapshot_name,
|
const string& snapshot_name,
|
||||||
BusProfile* bus_profile,
|
BusProfile const * bus_profile,
|
||||||
string mix_template)
|
string mix_template)
|
||||||
: _playlists (new SessionPlaylists)
|
: _playlists (new SessionPlaylists)
|
||||||
, _engine (eng)
|
, _engine (eng)
|
||||||
|
@ -573,7 +573,7 @@ Session::ensure_subdirs ()
|
|||||||
* Caller must not hold process lock.
|
* Caller must not hold process lock.
|
||||||
*/
|
*/
|
||||||
int
|
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) {
|
if (g_mkdir_with_parents (_path.c_str(), 0755) < 0) {
|
||||||
error << string_compose(_("Session: cannot create session folder \"%1\" (%2)"), _path, strerror (errno)) << endmsg;
|
error << string_compose(_("Session: cannot create session folder \"%1\" (%2)"), _path, strerror (errno)) << endmsg;
|
||||||
|
Loading…
Reference in New Issue
Block a user