File tree 5 files changed +5
-5
lines changed
5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ NameRecord &NameRecord::operator=(const NameRecord &from)
75
75
return *this ;
76
76
}
77
77
78
- bool NameRecord::operator ==(const NameRecord &o)
78
+ bool NameRecord::operator ==(const NameRecord &o) const
79
79
{
80
80
if (isNull () != o.isNull () || owner () != o.owner () || ttl () != o.ttl () || type () != o.type ()) {
81
81
return false ;
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ class IRISNET_EXPORT NameRecord {
148
148
/* *
149
149
\brief Compares \a other with this object
150
150
*/
151
- bool operator ==(const NameRecord &other);
151
+ bool operator ==(const NameRecord &other) const ;
152
152
153
153
/* *
154
154
\brief Returns true if this record object is null, otherwise returns false
Original file line number Diff line number Diff line change @@ -448,7 +448,7 @@ QDomElement MUCItem::toXml(QDomDocument &d)
448
448
return e;
449
449
}
450
450
451
- bool MUCItem::operator ==(const MUCItem &o)
451
+ bool MUCItem::operator ==(const MUCItem &o) const
452
452
{
453
453
return !nick_.compare (o.nick_ ) && ((!jid_.isValid () && !o.jid_ .isValid ()) || jid_.compare (o.jid_ , true ))
454
454
&& ((!actor_.isValid () && !o.actor_ .isValid ()) || actor_.compare (o.actor_ , true ))
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ class Features {
104
104
static QString feature (long id);
105
105
106
106
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 ; }
108
108
Features &operator +=(const Features &other)
109
109
{
110
110
_list += other._list ;
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class MUCItem {
51
51
void fromXml (const QDomElement &);
52
52
QDomElement toXml (QDomDocument &);
53
53
54
- bool operator ==(const MUCItem &o);
54
+ bool operator ==(const MUCItem &o) const ;
55
55
56
56
private:
57
57
QString nick_;
You can’t perform that action at this time.
0 commit comments