editor: change return type of begin_tempo_map_edit()

This allows us to get the write-copy of the tempo map in one step.
This commit is contained in:
Paul Davis 2022-05-02 12:01:12 -06:00
parent 0a99d67dac
commit 33622474af
2 changed files with 5 additions and 5 deletions

View File

@ -1738,7 +1738,7 @@ private:
PBD::Signal0<void> EditorFreeze;
PBD::Signal0<void> EditorThaw;
void begin_tempo_map_edit ();
Temporal::TempoMap::WritableSharedPtr begin_tempo_map_edit ();
void abort_tempo_map_edit ();
void mid_tempo_change ();

View File

@ -817,12 +817,12 @@ Editor::real_remove_meter_marker (Temporal::MeterPoint const * section)
return FALSE;
}
void
Temporal::TempoMap::WritableSharedPtr
Editor::begin_tempo_map_edit ()
{
TempoMap::fetch_writable ();
TempoMap::SharedPtr tmap (TempoMap::use());
reassociate_metric_markers (tmap);
TempoMap::WritableSharedPtr wmap = TempoMap::fetch_writable ();
reassociate_metric_markers (wmap);
return wmap;
}
void