mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 17:03:06 +01:00
small change to Locations::clear_cue_markers() API to bring it into line with other clear_* methods
This commit is contained in:
parent
a327e01ff3
commit
d69a2c3c13
2 changed files with 6 additions and 3 deletions
|
|
@ -252,7 +252,7 @@ public:
|
|||
bool clear_xrun_markers ();
|
||||
bool clear_ranges ();
|
||||
|
||||
void clear_cue_markers (samplepos_t start, samplepos_t end);
|
||||
bool clear_cue_markers (samplepos_t start, samplepos_t end);
|
||||
|
||||
void ripple (timepos_t const & at, timecnt_t const & distance, bool include_locked, bool notify);
|
||||
|
||||
|
|
|
|||
|
|
@ -1663,7 +1663,7 @@ Locations::ripple (timepos_t const & at, timecnt_t const & distance, bool includ
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
bool
|
||||
Locations::clear_cue_markers (samplepos_t start, samplepos_t end)
|
||||
{
|
||||
TempoMap::SharedPtr tmap (TempoMap::use());
|
||||
|
|
@ -1671,7 +1671,7 @@ Locations::clear_cue_markers (samplepos_t start, samplepos_t end)
|
|||
Temporal::Beats eb;
|
||||
bool have_beats = false;
|
||||
vector<Location*> r;
|
||||
|
||||
bool removed_at_least_one = false;
|
||||
|
||||
{
|
||||
Glib::Threads::RWLock::WriterLock lm (_lock);
|
||||
|
|
@ -1702,6 +1702,7 @@ Locations::clear_cue_markers (samplepos_t start, samplepos_t end)
|
|||
continue;
|
||||
}
|
||||
}
|
||||
removed_at_least_one = true;
|
||||
}
|
||||
|
||||
++i;
|
||||
|
|
@ -1712,4 +1713,6 @@ Locations::clear_cue_markers (samplepos_t start, samplepos_t end)
|
|||
removed (l); /* EMIT SIGNAL */
|
||||
delete l;
|
||||
}
|
||||
|
||||
return removed_at_least_one;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue