From 7e0a97d2521b9ce57003176e82a0b5564aa003c2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Jul 2012 23:26:59 +0300 Subject: Fix more code style and additional warnings. --- src/dropshortcut.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/dropshortcut.cpp') diff --git a/src/dropshortcut.cpp b/src/dropshortcut.cpp index fc370d47f..b0202f04d 100644 --- a/src/dropshortcut.cpp +++ b/src/dropshortcut.cpp @@ -64,7 +64,8 @@ void DropShortcut::load(bool oldConfig) for (int i = 0; i < DROP_SHORTCUT_ITEMS; i++) { int itemId = cfg->getValue("drop" + toString(i), -1); - int itemColor = cfg->getValue("dropColor" + toString(i), -1); + unsigned char itemColor = static_cast( + cfg->getValue("dropColor" + toString(i), -1)); if (itemId != -1) { @@ -102,7 +103,7 @@ void DropShortcut::dropFirst() return; const int itemId = getItem(0); - const int itemColor = getItemColor(0); + const unsigned char itemColor = getItemColor(0); if (itemId > 0) { -- cgit v1.2.3-60-g2f50