aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-28 00:16:27 +0800
committercrupest <crupest@outlook.com>2020-10-28 00:16:27 +0800
commit9d4a37acbe66983654aa90dbd3aa3700038697b9 (patch)
treec3588a613bf122ab6f19b54ed5b31b339dc94e74 /include
parentb61ab6a39ed1637c65e83b7ff7ff0d20908baafb (diff)
downloadcru-9d4a37acbe66983654aa90dbd3aa3700038697b9.tar.gz
cru-9d4a37acbe66983654aa90dbd3aa3700038697b9.tar.bz2
cru-9d4a37acbe66983654aa90dbd3aa3700038697b9.zip
...
Diffstat (limited to 'include')
-rw-r--r--include/cru/ui/ShortcutHub.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/ui/ShortcutHub.hpp b/include/cru/ui/ShortcutHub.hpp
index 7a75e4a1..7557b758 100644
--- a/include/cru/ui/ShortcutHub.hpp
+++ b/include/cru/ui/ShortcutHub.hpp
@@ -54,8 +54,8 @@ template <>
struct hash<cru::ui::ShortcutKeyBind> {
std::size_t operator()(const cru::ui::ShortcutKeyBind& value) const {
std::size_t result = 0;
- cru::hash_combine(result, value.GetKey());
- cru::hash_combine(result, value.GetModifier());
+ cru::hash_combine(result, static_cast<int>(value.GetKey()));
+ cru::hash_combine(result, static_cast<int>(value.GetModifier()));
return result;
}
};