mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Rename Range::overlap to Range::overlaps
This commit is contained in:
parent
c48063dec7
commit
9e1e604108
7 changed files with 40 additions and 40 deletions
|
@ -1,6 +1,6 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright 2015 - 2016, Paul Beckingham, Federico Hernandez.
|
||||
// Copyright 2015 - 2018, Thomas Lauf, Paul Beckingham, Federico Hernandez.
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
// of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -429,7 +429,7 @@ std::vector <Range> merge (
|
|||
int merges = 0;
|
||||
for (unsigned int i = 0; i < sorted.size (); ++i)
|
||||
{
|
||||
if (cursor && sorted[cursor - 1].overlap (sorted[i]))
|
||||
if (cursor && sorted[cursor - 1].overlaps (sorted[i]))
|
||||
{
|
||||
sorted[cursor - 1] = sorted[cursor - 1].combine (sorted[i]);
|
||||
++merges;
|
||||
|
@ -457,11 +457,11 @@ std::vector <Range> addRanges (
|
|||
std::vector <Range> results;
|
||||
|
||||
for (auto& range : ranges)
|
||||
if (limits.overlap (range))
|
||||
if (limits.overlaps (range))
|
||||
results.push_back (range);
|
||||
|
||||
for (auto& addition : additions)
|
||||
if (limits.overlap (addition))
|
||||
if (limits.overlaps (addition))
|
||||
results.push_back (addition);
|
||||
|
||||
return results;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue