mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
data: Renamed 'collapse' to 'flatten', for accuracy
This commit is contained in:
parent
bd5121e2c8
commit
86ff9189bd
5 changed files with 28 additions and 23 deletions
|
@ -404,7 +404,7 @@ std::vector <Interval> subset (
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::vector <Interval> collapse (
|
||||
std::vector <Interval> flatten (
|
||||
const Interval& interval,
|
||||
const std::vector <Range>& exclusions)
|
||||
{
|
||||
|
@ -639,7 +639,7 @@ std::vector <Interval> getTrackedIntervals (
|
|||
|
||||
std::vector <Interval> intervals;
|
||||
for (auto& inclusion : subset (filter, inclusions))
|
||||
for (auto& interval : collapse (clip (inclusion, filter.range), exclusions))
|
||||
for (auto& interval : flatten (clip (inclusion, filter.range), exclusions))
|
||||
intervals.push_back (interval);
|
||||
|
||||
return intervals;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue