[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [libqapt] src: This operator should be const.
From:       Jonathan Thomas <echidnaman () kubuntu ! org>
Date:       2013-06-07 15:56:37
Message-ID: 20130607155637.B3535A605A () git ! kde ! org
[Download RAW message or body]

Git commit edea636c5f43acdfe4ebd52230cfbb73bc112272 by Jonathan Thomas.
Committed on 07/06/2013 at 17:55.
Pushed by jmthomas into branch 'master'.

This operator should be const.

M  +1    -1    src/sourceentry.cpp
M  +1    -1    src/sourceentry.h

http://commits.kde.org/libqapt/edea636c5f43acdfe4ebd52230cfbb73bc112272

diff --git a/src/sourceentry.cpp b/src/sourceentry.cpp
index 5d21724..2c0ef59 100644
--- a/src/sourceentry.cpp
+++ b/src/sourceentry.cpp
@@ -192,7 +192,7 @@ SourceEntry::~SourceEntry()
 {
 }
 
-bool SourceEntry::operator==(const SourceEntry &other)
+bool SourceEntry::operator==(const SourceEntry &other) const
 {
     return (d->isEnabled == other.d->isEnabled &&
             d->type == other.d->type &&
diff --git a/src/sourceentry.h b/src/sourceentry.h
index d592dec..c6be492 100644
--- a/src/sourceentry.h
+++ b/src/sourceentry.h
@@ -40,7 +40,7 @@ public:
     SourceEntry &operator=(const SourceEntry &);
     ~SourceEntry();
 
-    bool operator==(const SourceEntry &other);
+    bool operator==(const SourceEntry &other) const;
 
     bool isValid() const;
     bool isEnabled() const;

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic