mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-20 08:53:36 +02:00
test: Fix Wambiguous-reversed-operator compiler warnings
This commit is contained in:
parent
e44423c9d3
commit
fafc4eb363
@ -137,7 +137,7 @@ public:
|
||||
* - vvNew entries refer to the same addresses
|
||||
* - vvTried entries refer to the same addresses
|
||||
*/
|
||||
bool operator==(const AddrManDeterministic& other)
|
||||
bool operator==(const AddrManDeterministic& other) const
|
||||
{
|
||||
LOCK2(m_impl->cs, other.m_impl->cs);
|
||||
|
||||
|
@ -38,13 +38,13 @@ public:
|
||||
READWRITE(obj.txval);
|
||||
}
|
||||
|
||||
bool operator==(const CSerializeMethodsTestSingle& rhs)
|
||||
bool operator==(const CSerializeMethodsTestSingle& rhs) const
|
||||
{
|
||||
return intval == rhs.intval && \
|
||||
boolval == rhs.boolval && \
|
||||
stringval == rhs.stringval && \
|
||||
strcmp(charstrval, rhs.charstrval) == 0 && \
|
||||
*txval == *rhs.txval;
|
||||
return intval == rhs.intval &&
|
||||
boolval == rhs.boolval &&
|
||||
stringval == rhs.stringval &&
|
||||
strcmp(charstrval, rhs.charstrval) == 0 &&
|
||||
*txval == *rhs.txval;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user