mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-24 14:17:21 +01:00
remove unnecessary 2nd argument from Session::request_locate() calls (default value is identical) (surfaces edition)
This commit is contained in:
parent
ac53a9bbf8
commit
8e868fc743
3 changed files with 8 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue