зеркало из https://github.com/nextcloud/desktop.git
ActivityData: Declare operators outside the class
This commit is contained in:
Родитель
69e8e15884
Коммит
4d59f5ec66
|
@ -19,12 +19,12 @@
|
|||
namespace OCC
|
||||
{
|
||||
|
||||
bool Activity::operator<( const Activity& val ) const {
|
||||
return _dateTime.toMSecsSinceEpoch() > val._dateTime.toMSecsSinceEpoch();
|
||||
bool operator<( const Activity& rhs, const Activity& lhs ) {
|
||||
return rhs._dateTime.toMSecsSinceEpoch() > lhs._dateTime.toMSecsSinceEpoch();
|
||||
}
|
||||
|
||||
bool Activity::operator==( const Activity& val ) const {
|
||||
return (_type == val._type && _id == val._id && _accName == val._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 {
|
||||
|
|
|
@ -65,13 +65,14 @@ public:
|
|||
* @param val
|
||||
* @return
|
||||
*/
|
||||
bool operator<( const Activity& val ) const;
|
||||
|
||||
bool operator==( const Activity& val ) const;
|
||||
|
||||
Identifier ident() const;
|
||||
};
|
||||
|
||||
bool operator==( const Activity& rhs, const Activity& lhs );
|
||||
bool operator<( const Activity& rhs, const Activity& lhs );
|
||||
|
||||
/* ==================================================================== */
|
||||
/**
|
||||
* @brief The ActivityList
|
||||
|
|
Загрузка…
Ссылка в новой задаче