summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/acc/profile_manager.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/hle/service/acc/profile_manager.h b/src/core/hle/service/acc/profile_manager.h
index 91f6f03a9..054dd864e 100644
--- a/src/core/hle/service/acc/profile_manager.h
+++ b/src/core/hle/service/acc/profile_manager.h
@@ -21,16 +21,14 @@ struct UUID {
21 u128 uuid = INVALID_UUID; 21 u128 uuid = INVALID_UUID;
22 UUID() = default; 22 UUID() = default;
23 explicit UUID(const u128& id) : uuid{id} {} 23 explicit UUID(const u128& id) : uuid{id} {}
24 explicit UUID(const u64 lo, const u64 hi) { 24 explicit UUID(const u64 lo, const u64 hi) : uuid{{lo, hi}} {}
25 uuid[0] = lo; 25
26 uuid[1] = hi;
27 };
28 explicit operator bool() const { 26 explicit operator bool() const {
29 return uuid[0] != INVALID_UUID[0] || uuid[1] != INVALID_UUID[1]; 27 return uuid != INVALID_UUID;
30 } 28 }
31 29
32 bool operator==(const UUID& rhs) const { 30 bool operator==(const UUID& rhs) const {
33 return std::tie(uuid[0], uuid[1]) == std::tie(rhs.uuid[0], rhs.uuid[1]); 31 return uuid == rhs.uuid;
34 } 32 }
35 33
36 bool operator!=(const UUID& rhs) const { 34 bool operator!=(const UUID& rhs) const {