aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/result.h
diff options
context:
space:
mode:
authorGravatar Lioncash <mathew1800@gmail.com>2015-02-27 21:16:19 -0500
committerGravatar Lioncash <mathew1800@gmail.com>2015-02-27 21:16:21 -0500
commit99ff8bbb0cd52a79fc68f5af11452196b2f08436 (patch)
tree0b826fc1c522c76ed366e4de05805e48497d9d59 /src/core/hle/result.h
parentc9ef377afaa038797de6c08da9f204acf67ed1fc (diff)
result: Make comparison operators take references
It's unnecessary to make copies for simple comparisons like this.
Diffstat (limited to 'src/core/hle/result.h')
-rw-r--r--src/core/hle/result.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h
index 0e391fe2..3648a168 100644
--- a/src/core/hle/result.h
+++ b/src/core/hle/result.h
@@ -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;
}