From 99ff8bbb0cd52a79fc68f5af11452196b2f08436 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 27 Feb 2015 21:16:19 -0500 Subject: result: Make comparison operators take references It's unnecessary to make copies for simple comparisons like this. --- src/core/hle/result.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/hle') 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 { } }; -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; } -- cgit v1.2.3