diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-06 01:30:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-06 13:08:48 +0300 |
commit | 7cc864e68935b035d69d68aba2f8ad38ce275d5a (patch) | |
tree | cb7718bab03b0249f3cf034c9490c8aa3c919fb7 /src/itemshortcut.cpp | |
parent | 55cfc856a68604c93779ed8017f052b54b2e7c03 (diff) | |
download | mv-7cc864e68935b035d69d68aba2f8ad38ce275d5a.tar.gz mv-7cc864e68935b035d69d68aba2f8ad38ce275d5a.tar.bz2 mv-7cc864e68935b035d69d68aba2f8ad38ce275d5a.tar.xz mv-7cc864e68935b035d69d68aba2f8ad38ce275d5a.zip |
fix code style and some minor issues.
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r-- | src/itemshortcut.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<unsigned int>(index1) >= SHORTCUT_ITEMS + || static_cast<unsigned int>(index2) >= SHORTCUT_ITEMS) { return; } |