tweak Stateful/StatefulDiffCommand changes so that SessionObject's actually get a name; make StatefulDiffCommand use a weak_ptr, not a raw ptr; use .val() rather than .get() to avoid confusion with boost:: smart ptr method of the same name
git-svn-id: svn://localhost/ardour2/branches/3.0@6678 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -144,7 +144,7 @@ Session::stateful_diff_command_factory (XMLNode* n)
|
||||
if ((obj_T == typeid (AudioRegion).name() || obj_T == typeid (MidiRegion).name())) {
|
||||
boost::shared_ptr<Region> r = RegionFactory::region_by_id (id);
|
||||
if (r) {
|
||||
return new StatefulDiffCommand (r.get(), *n);
|
||||
return new StatefulDiffCommand (r, *n);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user