summaryrefslogtreecommitdiff
path: root/src/common/page_table.h
diff options
context:
space:
mode:
authorGravatar bunnei2020-08-16 01:47:54 -0400
committerGravatar GitHub2020-08-16 01:47:54 -0400
commitdb96034ea429cf0b0b5e2bac790392d9e2f50990 (patch)
tree9a1ed0bfc2d01d67d0f62383dbb2a1f4c9fb4eca /src/common/page_table.h
parentMerge pull request #4519 from lioncash/semi (diff)
parentcommon/compression: Roll back std::span changes (diff)
downloadyuzu-db96034ea429cf0b0b5e2bac790392d9e2f50990.tar.gz
yuzu-db96034ea429cf0b0b5e2bac790392d9e2f50990.tar.xz
yuzu-db96034ea429cf0b0b5e2bac790392d9e2f50990.zip
Merge pull request #4528 from lioncash/discard
common: Make use of [[nodiscard]] where applicable
Diffstat (limited to 'src/common/page_table.h')
-rw-r--r--src/common/page_table.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/page_table.h b/src/common/page_table.h
index 1e8bd3187..cf5eed780 100644
--- a/src/common/page_table.h
+++ b/src/common/page_table.h
@@ -36,11 +36,11 @@ struct SpecialRegion {
36 36
37 MemoryHookPointer handler; 37 MemoryHookPointer handler;
38 38
39 bool operator<(const SpecialRegion& other) const { 39 [[nodiscard]] bool operator<(const SpecialRegion& other) const {
40 return std::tie(type, handler) < std::tie(other.type, other.handler); 40 return std::tie(type, handler) < std::tie(other.type, other.handler);
41 } 41 }
42 42
43 bool operator==(const SpecialRegion& other) const { 43 [[nodiscard]] bool operator==(const SpecialRegion& other) const {
44 return std::tie(type, handler) == std::tie(other.type, other.handler); 44 return std::tie(type, handler) == std::tie(other.type, other.handler);
45 } 45 }
46}; 46};