test: Fix Wambiguous-reversed-operator compiler warnings

This commit is contained in:
MarcoFalke committed 2022-02-21 16:36:59 +01:00
1 parent e44423c9d3
commit fafc4eb363
2 files changed
+7 -7

No files matched your search

+1 -1
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);
+6 -6
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;
} }
}; };