mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-04 20:06:41 +01:00
Merge pull request #6610 from lioncash/swap
Common/Swap: Amend BigEndianValue's operator= to return a reference to the object rather than returning void
This commit is contained in:
commit
3d10344561
@ -174,7 +174,12 @@ struct BigEndianValue
|
|||||||
BigEndianValue() = default;
|
BigEndianValue() = default;
|
||||||
explicit BigEndianValue(value_type val) { *this = val; }
|
explicit BigEndianValue(value_type val) { *this = val; }
|
||||||
operator value_type() const { return FromBigEndian(raw); }
|
operator value_type() const { return FromBigEndian(raw); }
|
||||||
void operator=(value_type v) { raw = FromBigEndian(v); }
|
BigEndianValue& operator=(value_type v)
|
||||||
|
{
|
||||||
|
raw = FromBigEndian(v);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
value_type raw;
|
value_type raw;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user