File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ class CAddrManDeterministic : public CAddrMan
142
142
* - vvNew entries refer to the same addresses
143
143
* - vvTried entries refer to the same addresses
144
144
*/
145
- bool operator ==(const CAddrManDeterministic& other)
145
+ bool operator ==(const CAddrManDeterministic& other) const
146
146
{
147
147
LOCK2 (cs, other.cs );
148
148
Original file line number Diff line number Diff line change @@ -38,13 +38,13 @@ class CSerializeMethodsTestSingle
38
38
READWRITE (obj.txval );
39
39
}
40
40
41
- bool operator ==(const CSerializeMethodsTestSingle& rhs)
41
+ bool operator ==(const CSerializeMethodsTestSingle& rhs) const
42
42
{
43
- return intval == rhs.intval && \
44
- boolval == rhs.boolval && \
45
- stringval == rhs.stringval && \
46
- strcmp (charstrval, rhs.charstrval ) == 0 && \
47
- *txval == *rhs.txval ;
43
+ return intval == rhs.intval &&
44
+ boolval == rhs.boolval &&
45
+ stringval == rhs.stringval &&
46
+ strcmp (charstrval, rhs.charstrval ) == 0 &&
47
+ *txval == *rhs.txval ;
48
48
}
49
49
};
50
50
You can’t perform that action at this time.
0 commit comments