mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +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
|
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);
|
timecnt_t newlen (_length);
|
||||||
timepos_t np = new_position;
|
timepos_t np = new_position;
|
||||||
|
|
@ -1051,7 +1053,6 @@ Region::modify_front_unchecked (timepos_t const & npos, bool reset_fade)
|
||||||
}
|
}
|
||||||
|
|
||||||
maybe_invalidate_transients ();
|
maybe_invalidate_transients ();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue