mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
sort of NO-OP: follow if/return coding guidelines
This commit is contained in:
parent
4872d6706d
commit
1dd7d2af1f
1 changed files with 28 additions and 27 deletions
|
|
@ -1024,7 +1024,9 @@ Region::modify_front_unchecked (timepos_t const & npos, bool reset_fade)
|
|||
source_zero = timepos_t (source_position().time_domain()); // its actually negative, but this will work for us
|
||||
}
|
||||
|
||||
if (new_position < last) { /* can't trim it zero or negative length */
|
||||
if (new_position >= last) { /* can't trim it zero or negative length */
|
||||
return;
|
||||
}
|
||||
|
||||
timecnt_t newlen (_length);
|
||||
timepos_t np = new_position;
|
||||
|
|
@ -1052,7 +1054,6 @@ Region::modify_front_unchecked (timepos_t const & npos, bool reset_fade)
|
|||
|
||||
maybe_invalidate_transients ();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Region::modify_end_unchecked (timepos_t const & new_endpoint, bool reset_fade)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue