From 7cc864e68935b035d69d68aba2f8ad38ce275d5a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 6 Jul 2013 01:30:12 +0300 Subject: fix code style and some minor issues. --- src/itemshortcut.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/itemshortcut.cpp') diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp index b373b5cd4..2ba3cbe9a 100644 --- a/src/itemshortcut.cpp +++ b/src/itemshortcut.cpp @@ -230,8 +230,9 @@ void ItemShortcut::setItem(const int index, const int item, void ItemShortcut::swap(const int index1, const int index2) { - if (index1 < 0 || index2 < 0 || (unsigned int)index1 >= SHORTCUT_ITEMS - || (unsigned int)index2 >= SHORTCUT_ITEMS) + if (index1 < 0 || index2 < 0 + || static_cast(index1) >= SHORTCUT_ITEMS + || static_cast(index2) >= SHORTCUT_ITEMS) { return; } -- cgit v1.2.3-60-g2f50