mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-23 18:19:21 +01:00
result: Make comparison operators take references
It's unnecessary to make copies for simple comparisons like this.
This commit is contained in:
parent
c9ef377afa
commit
99ff8bbb0c
@ -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;
|
||||
}
|
||||
|
||||
inline bool operator!=(const ResultCode a, const ResultCode b) {
|
||||
inline bool operator!=(const ResultCode& a, const ResultCode& b) {
|
||||
return a.raw != b.raw;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user