diff options
| author | 2015-02-27 21:16:19 -0500 | |
|---|---|---|
| committer | 2015-02-27 21:16:21 -0500 | |
| commit | 99ff8bbb0cd52a79fc68f5af11452196b2f08436 (patch) | |
| tree | 0b826fc1c522c76ed366e4de05805e48497d9d59 /src | |
| parent | Merge pull request #599 from Subv/morton (diff) | |
| download | yuzu-99ff8bbb0cd52a79fc68f5af11452196b2f08436.tar.gz yuzu-99ff8bbb0cd52a79fc68f5af11452196b2f08436.tar.xz yuzu-99ff8bbb0cd52a79fc68f5af11452196b2f08436.zip | |
result: Make comparison operators take references
It's unnecessary to make copies for simple comparisons like this.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/result.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h index 0e391fe2d..3648a168b 100644 --- a/src/core/hle/result.h +++ b/src/core/hle/result.h | |||
| @@ -208,11 +208,11 @@ union ResultCode { | |||
| 208 | } | 208 | } |
| 209 | }; | 209 | }; |
| 210 | 210 | ||
| 211 | inline bool operator==(const ResultCode a, const ResultCode b) { | 211 | inline bool operator==(const ResultCode& a, const ResultCode& b) { |
| 212 | return a.raw == b.raw; | 212 | return a.raw == b.raw; |
| 213 | } | 213 | } |
| 214 | 214 | ||
| 215 | inline bool operator!=(const ResultCode a, const ResultCode b) { | 215 | inline bool operator!=(const ResultCode& a, const ResultCode& b) { |
| 216 | return a.raw != b.raw; | 216 | return a.raw != b.raw; |
| 217 | } | 217 | } |
| 218 | 218 | ||