mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Database: Remove Database::allLines()
The Database class itself can now be used in range-based for loops for iterating over all the lines.
This commit is contained in:
parent
bd1f7aef99
commit
623db0c8e4
3 changed files with 1 additions and 22 deletions
|
@ -315,7 +315,7 @@ std::vector <Range> getAllExclusions (
|
|||
std::vector <Interval> getAllInclusions (Database& database)
|
||||
{
|
||||
std::vector <Interval> all;
|
||||
for (auto& line : database.allLines ())
|
||||
for (auto& line : database)
|
||||
{
|
||||
Interval i = IntervalFactory::fromSerialization (line);
|
||||
all.push_back (i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue