test: Fix Wambiguous-reversed-operator compiler warnings

This commit is contained in:
MarcoFalke 2022-02-21 16:45:50 +01:00
parent e44423c9d3
commit fafc4eb363
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548
2 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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;
} }
}; };