diff options
Diffstat (limited to 'src/gui/activitydata.cpp')
-rw-r--r-- | src/gui/activitydata.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/activitydata.cpp b/src/gui/activitydata.cpp index cd67c9494..b0236658e 100644 --- a/src/gui/activitydata.cpp +++ b/src/gui/activitydata.cpp @@ -17,20 +17,20 @@ #include "activitydata.h" -namespace OCC -{ +namespace OCC { -bool operator<( const Activity& rhs, const Activity& lhs ) { +bool operator<(const Activity &rhs, const Activity &lhs) +{ return rhs._dateTime.toMSecsSinceEpoch() > lhs._dateTime.toMSecsSinceEpoch(); } -bool operator==( const Activity& rhs, const Activity& lhs ) { - return (rhs._type == lhs._type && rhs._id== lhs._id && rhs._accName == lhs._accName); +bool operator==(const Activity &rhs, const Activity &lhs) +{ + return (rhs._type == lhs._type && rhs._id == lhs._id && rhs._accName == lhs._accName); } -Activity::Identifier Activity::ident() const { - return Identifier( _id, _accName ); +Activity::Identifier Activity::ident() const +{ + return Identifier(_id, _accName); } - - } |