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:
parent
0a99d67dac
commit
33622474af
@ -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 ();
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user