Skip to content

Commit 99d930b

Browse files
committed
Added a few missed consts
1 parent a79090c commit 99d930b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/irisnet/corelib/netnames.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ NameRecord &NameRecord::operator=(const NameRecord &from)
7575
return *this;
7676
}
7777

78-
bool NameRecord::operator==(const NameRecord &o)
78+
bool NameRecord::operator==(const NameRecord &o) const
7979
{
8080
if (isNull() != o.isNull() || owner() != o.owner() || ttl() != o.ttl() || type() != o.type()) {
8181
return false;

src/irisnet/corelib/netnames.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class IRISNET_EXPORT NameRecord {
148148
/**
149149
\brief Compares \a other with this object
150150
*/
151-
bool operator==(const NameRecord &other);
151+
bool operator==(const NameRecord &other) const;
152152

153153
/**
154154
\brief Returns true if this record object is null, otherwise returns false

src/xmpp/xmpp-im/types.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ QDomElement MUCItem::toXml(QDomDocument &d)
448448
return e;
449449
}
450450

451-
bool MUCItem::operator==(const MUCItem &o)
451+
bool MUCItem::operator==(const MUCItem &o) const
452452
{
453453
return !nick_.compare(o.nick_) && ((!jid_.isValid() && !o.jid_.isValid()) || jid_.compare(o.jid_, true))
454454
&& ((!actor_.isValid() && !o.actor_.isValid()) || actor_.compare(o.actor_, true))

src/xmpp/xmpp-im/xmpp_features.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class Features {
104104
static QString feature(long id);
105105

106106
Features &operator<<(const QString &feature);
107-
inline bool operator==(const Features &other) { return _list == other._list; }
107+
inline bool operator==(const Features &other) const { return _list == other._list; }
108108
Features &operator+=(const Features &other)
109109
{
110110
_list += other._list;

src/xmpp/xmpp-im/xmpp_muc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class MUCItem {
5151
void fromXml(const QDomElement &);
5252
QDomElement toXml(QDomDocument &);
5353

54-
bool operator==(const MUCItem &o);
54+
bool operator==(const MUCItem &o) const;
5555

5656
private:
5757
QString nick_;

0 commit comments

Comments
 (0)