mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +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,12 +38,12 @@ 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 && \
|
||||
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