mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 15:32:34 +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
|
* - vvNew entries refer to the same addresses
|
||||||
* - vvTried 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);
|
LOCK2(m_impl->cs, other.m_impl->cs);
|
||||||
|
|
||||||
|
@ -38,13 +38,13 @@ public:
|
|||||||
READWRITE(obj.txval);
|
READWRITE(obj.txval);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator==(const CSerializeMethodsTestSingle& rhs)
|
bool operator==(const CSerializeMethodsTestSingle& rhs) const
|
||||||
{
|
{
|
||||||
return intval == rhs.intval && \
|
return intval == rhs.intval &&
|
||||||
boolval == rhs.boolval && \
|
boolval == rhs.boolval &&
|
||||||
stringval == rhs.stringval && \
|
stringval == rhs.stringval &&
|
||||||
strcmp(charstrval, rhs.charstrval) == 0 && \
|
strcmp(charstrval, rhs.charstrval) == 0 &&
|
||||||
*txval == *rhs.txval;
|
*txval == *rhs.txval;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user