merge bitcoin#24406: Fix Wambiguous-reversed-operator compiler warnings

This commit is contained in:
Kittywhiskers Van Gogh 2022-02-21 16:45:50 +01:00
parent 3265b54a2f
commit 740d25c062
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD
2 changed files with 7 additions and 7 deletions

View File

@ -142,7 +142,7 @@ public:
* - vvNew entries refer to the same addresses
* - vvTried entries refer to the same addresses
*/
bool operator==(const CAddrManDeterministic& other)
bool operator==(const CAddrManDeterministic& other) const
{
LOCK2(cs, other.cs);

View File

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