summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorChloe Marcec <dmarcecguzman@gmail.com>2021-07-20 18:36:57 +0200
committerChloe Marcec <dmarcecguzman@gmail.com>2021-07-20 18:36:57 +0200
commit75e9d3b992e0655482f10bff90eae6e1fba8bd28 (patch)
tree82c6645ae73a667245b7f2444b46fd3197b55b3c /src/common
parentvk_buffer_cache: Fix quad index array with 0 vertices (#6627) (diff)
downloadyuzu-75e9d3b992e0655482f10bff90eae6e1fba8bd28.tar
yuzu-75e9d3b992e0655482f10bff90eae6e1fba8bd28.tar.gz
yuzu-75e9d3b992e0655482f10bff90eae6e1fba8bd28.tar.bz2
yuzu-75e9d3b992e0655482f10bff90eae6e1fba8bd28.tar.lz
yuzu-75e9d3b992e0655482f10bff90eae6e1fba8bd28.tar.xz
yuzu-75e9d3b992e0655482f10bff90eae6e1fba8bd28.tar.zst
yuzu-75e9d3b992e0655482f10bff90eae6e1fba8bd28.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/uuid.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/uuid.h b/src/common/uuid.h
index 2e7a18405..0ffa37e7c 100644
--- a/src/common/uuid.h
+++ b/src/common/uuid.h
@@ -20,12 +20,11 @@ struct UUID {
constexpr explicit UUID(const u64 lo, const u64 hi) : uuid{{lo, hi}} {}
[[nodiscard]] constexpr explicit operator bool() const {
- return uuid[0] != INVALID_UUID[0] && uuid[1] != INVALID_UUID[1];
+ return uuid != INVALID_UUID;
}
[[nodiscard]] constexpr bool operator==(const UUID& rhs) const {
- // TODO(DarkLordZach): Replace with uuid == rhs.uuid with C++20
- return uuid[0] == rhs.uuid[0] && uuid[1] == rhs.uuid[1];
+ return uuid == rhs.uuid;
}
[[nodiscard]] constexpr bool operator!=(const UUID& rhs) const {