From 8b2464a723f7039a3efbc0c7d2e883729b3fa7dd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Aug 2014 00:46:38 +0300 Subject: Fix some casts. --- src/gui/widgets/spellshortcutcontainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/spellshortcutcontainer.cpp') diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp index 33579b5a9..8960725d5 100644 --- a/src/gui/widgets/spellshortcutcontainer.cpp +++ b/src/gui/widgets/spellshortcutcontainer.cpp @@ -164,7 +164,7 @@ void SpellShortcutContainer::mousePressed(MouseEvent &event) if (index == -1) return; - const unsigned int eventButton = event.getButton(); + const MouseButton::Type eventButton = event.getButton(); if (eventButton == MouseButton::LEFT) { const int itemId = getItemByIndex(index); @@ -200,7 +200,7 @@ void SpellShortcutContainer::mouseReleased(MouseEvent &event) } const int itemId = getItemByIndex(index); - const unsigned int eventButton = event.getButton(); + const MouseButton::Type eventButton = event.getButton(); if (eventButton == MouseButton::LEFT) { -- cgit v1.2.3-70-g09d2