mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
merge bitcoin#24406: Fix Wambiguous-reversed-operator compiler warnings
This commit is contained in:
parent
3265b54a2f
commit
740d25c062
@ -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);
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user