diff options
Diffstat (limited to 'libkcal/period.cpp')
-rw-r--r-- | libkcal/period.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libkcal/period.cpp b/libkcal/period.cpp index be07d7d3b..ff944ee94 100644 --- a/libkcal/period.cpp +++ b/libkcal/period.cpp @@ -51,6 +51,14 @@ bool Period::operator<( const Period& other ) return start() < other.start(); } +bool Period::operator==( const Period &other ) const +{ + return + mStart == other.mStart && + mEnd == other.mEnd && + mHasDuration == other.mHasDuration; +} + TQDateTime Period::start() const { return mStart; |