summaryrefslogtreecommitdiff
path: root/src/itemshortcut.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r--src/itemshortcut.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp
index 9cce55eb7..aa78065c9 100644
--- a/src/itemshortcut.cpp
+++ b/src/itemshortcut.cpp
@@ -74,9 +74,8 @@ void ItemShortcut::load(bool oldConfig)
}
for (int i = 0; i < SHORTCUT_ITEMS; i++)
{
- int itemId = static_cast<int>(cfg->getValue(name + toString(i), -1));
- int itemColor = static_cast<int>(
- cfg->getValue(color + toString(i), 1));
+ int itemId = cfg->getValue(name + toString(i), -1);
+ int itemColor = cfg->getValue(color + toString(i), 1);
mItems[i] = itemId;
mItemColors[i] = itemColor;