remove unnecessary 2nd argument from Session::request_locate() calls (default value is identical) (surfaces edition)

This commit is contained in:
Paul Davis 2021-04-28 19:55:50 -06:00
parent ac53a9bbf8
commit 8e868fc743
3 changed files with 8 additions and 7 deletions

View file

@ -342,7 +342,7 @@ BasicUI::prev_marker ()
samplepos_t pos = session->locations()->first_mark_before (session->transport_sample());
if (pos >= 0) {
session->request_locate (pos, RollIfAppropriate);
session->request_locate (pos);
} else {
session->goto_start ();
}
@ -354,7 +354,7 @@ BasicUI::next_marker ()
samplepos_t pos = session->locations()->first_mark_after (session->transport_sample());
if (pos >= 0) {
session->request_locate (pos, RollIfAppropriate);
session->request_locate (pos);
} else {
session->goto_end();
}
@ -713,7 +713,7 @@ BasicUI::goto_nth_marker (int n)
for (Locations::LocationList::iterator i = ordered.begin(); n >= 0 && i != ordered.end(); ++i) {
if ((*i)->is_mark() && !(*i)->is_hidden() && !(*i)->is_session_range()) {
if (n == 0) {
session->request_locate ((*i)->start(), RollIfAppropriate);
session->request_locate ((*i)->start());
break;
}
--n;