File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ class AddrManDeterministic : public AddrMan
137
137
* - vvNew entries refer to the same addresses
138
138
* - vvTried entries refer to the same addresses
139
139
*/
140
- bool operator ==(const AddrManDeterministic& other)
140
+ bool operator ==(const AddrManDeterministic& other) const
141
141
{
142
142
LOCK2 (m_impl->cs , other.m_impl ->cs );
143
143
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