mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Range: Implemented ::operator!=
This commit is contained in:
parent
96202f3a24
commit
d535ffb4e5
2 changed files with 8 additions and 0 deletions
|
@ -48,6 +48,13 @@ bool Range::operator== (const Range& other) const
|
|||
end == other.end;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Range::operator!= (const Range& other) const
|
||||
{
|
||||
return start != other.start ||
|
||||
end != other.end;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Range::open ()
|
||||
{
|
||||
|
|
|
@ -36,6 +36,7 @@ public:
|
|||
Range () = default;
|
||||
Range (const Datetime&, const Datetime&);
|
||||
bool operator== (const Range&) const;
|
||||
bool operator!= (const Range&) const;
|
||||
|
||||
void open ();
|
||||
void open (const Datetime&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue