mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Range: Changed calls to more readable ones
This commit is contained in:
parent
5e1e1cea8b
commit
f7ed9642d4
1 changed files with 4 additions and 4 deletions
|
@ -286,12 +286,12 @@ std::vector <Range> Range::subtract (const Range& other) const
|
|||
// If the range is open, use 'now' as the end.
|
||||
time_t Range::total () const
|
||||
{
|
||||
assert (! is_ended () || end >= start);
|
||||
assert (is_open () || end >= start);
|
||||
|
||||
if (is_ended ())
|
||||
return Datetime (end) - Datetime (start);
|
||||
if (is_open ())
|
||||
return Datetime () - Datetime (start);
|
||||
|
||||
return Datetime () - Datetime (start);
|
||||
return Datetime (end) - Datetime (start);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue