diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-02-11 23:10:29 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-02-11 23:10:29 +0000 |
commit | a1e0dc13df3cdc7033c940f0f3311a2bd47d3b2e (patch) | |
tree | 72cf696511c00bb4dfc135f43f8c0ae0498140cf /gtk2_ardour/editor_ops.cc | |
parent | f938687f8798d094c99cd4308ad6aa1c467e4a97 (diff) |
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
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 6ed670509e..16773f269d 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -3180,7 +3180,7 @@ Editor::naturalize () for (RegionSelection::iterator i = rs.begin(); i != rs.end(); ++i) { (*i)->region()->clear_history (); (*i)->region()->move_to_natural_position (this); - _session->add_command (new StatefulDiffCommand ((*i)->region().get())); + _session->add_command (new StatefulDiffCommand ((*i)->region())); } commit_reversible_command (); } @@ -4932,7 +4932,7 @@ Editor::toggle_gain_envelope_active () if (arv) { arv->region()->clear_history (); arv->audio_region()->set_envelope_active (!arv->audio_region()->envelope_active()); - _session->add_command (new StatefulDiffCommand (arv->region().get())); + _session->add_command (new StatefulDiffCommand (arv->region())); } } @@ -4953,7 +4953,7 @@ Editor::toggle_region_lock () for (RegionSelection::iterator i = rs.begin(); i != rs.end(); ++i) { (*i)->region()->clear_history (); (*i)->region()->set_locked (!(*i)->region()->locked()); - _session->add_command (new StatefulDiffCommand ((*i)->region().get())); + _session->add_command (new StatefulDiffCommand ((*i)->region())); } _session->commit_reversible_command (); @@ -4995,7 +4995,7 @@ Editor::toggle_region_mute () for (RegionSelection::iterator i = rs.begin(); i != rs.end(); ++i) { (*i)->region()->clear_history (); (*i)->region()->set_muted (!(*i)->region()->muted()); - _session->add_command (new StatefulDiffCommand ((*i)->region().get())); + _session->add_command (new StatefulDiffCommand ((*i)->region())); } _session->commit_reversible_command (); @@ -5015,7 +5015,7 @@ Editor::toggle_region_opaque () for (RegionSelection::iterator i = rs.begin(); i != rs.end(); ++i) { (*i)->region()->clear_history (); (*i)->region()->set_opaque (!(*i)->region()->opaque()); - _session->add_command (new StatefulDiffCommand ((*i)->region().get())); + _session->add_command (new StatefulDiffCommand ((*i)->region())); } _session->commit_reversible_command (); |