[Pkg-owncloud-commits] [owncloud-client] 231/470: ActivityData: Declare operators outside the class

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu May 12 16:25:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 4d59f5ec66ac7219093cca37732e2e936bb1e1f1
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Tue Mar 29 14:09:19 2016 +0200

    ActivityData: Declare operators outside the class
---
 src/gui/activitydata.cpp | 8 ++++----
 src/gui/activitydata.h   | 5 +++--
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/gui/activitydata.cpp b/src/gui/activitydata.cpp
index 2d8001c..9543838 100644
--- a/src/gui/activitydata.cpp
+++ b/src/gui/activitydata.cpp
@@ -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 {
diff --git a/src/gui/activitydata.h b/src/gui/activitydata.h
index f35611e..5dada0a 100644
--- a/src/gui/activitydata.h
+++ b/src/gui/activitydata.h
@@ -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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list