result: Make comparison operators take references

It's unnecessary to make copies for simple comparisons like this.
This commit is contained in:
Lioncash 2015-02-27 21:16:19 -05:00
parent c9ef377afa
commit 99ff8bbb0c

View file

@ -208,11 +208,11 @@ union ResultCode {
} }
}; };
inline bool operator==(const ResultCode a, const ResultCode b) { inline bool operator==(const ResultCode& a, const ResultCode& b) {
return a.raw == b.raw; return a.raw == b.raw;
} }
inline bool operator!=(const ResultCode a, const ResultCode b) { inline bool operator!=(const ResultCode& a, const ResultCode& b) {
return a.raw != b.raw; return a.raw != b.raw;
} }