remove unnecessary 2nd argument from Session::request_locate() calls (default value is identical) (surfaces edition)
This commit is contained in:
@@ -562,7 +562,8 @@ ContourDesignControlProtocol::prev_marker_keep_rolling ()
|
||||
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 ();
|
||||
}
|
||||
@@ -574,7 +575,7 @@ ContourDesignControlProtocol::next_marker_keep_rolling ()
|
||||
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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -184,7 +184,7 @@ TranzportControlProtocol::prev_marker ()
|
||||
Location *location = session->locations()->first_location_before (session->transport_sample());
|
||||
|
||||
if (location) {
|
||||
session->request_locate (location->start(), session->transport_rolling());
|
||||
session->request_locate (location->start());
|
||||
notify(location->name().c_str());
|
||||
} else {
|
||||
session->goto_start ();
|
||||
@@ -199,7 +199,7 @@ TranzportControlProtocol::next_marker ()
|
||||
Location *location = session->locations()->first_location_after (session->transport_sample());
|
||||
|
||||
if (location) {
|
||||
session->request_locate (location->start(), session->transport_rolling());
|
||||
session->request_locate (location->start());
|
||||
notify(location->name().c_str());
|
||||
} else {
|
||||
session->request_locate (session->current_end_sample());
|
||||
|
||||
Reference in New Issue
Block a user