mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 23:11:14 +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;
|
||||
explicit BigEndianValue(value_type val) { *this = val; }
|
||||
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:
|
||||
value_type raw;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user