summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-29 01:36:33 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-29 01:36:33 +0300
commit50e6f52f9f326d09ee5a2d0f8e8c2235c5e9cd22 (patch)
tree621b805e2fa1f20ccbcbb98e652df784677e63c5 /src/gui
parentffcc519acbc3b4dc4e5d46bc2f70aa0dcf516131 (diff)
downloadmv-50e6f52f9f326d09ee5a2d0f8e8c2235c5e9cd22.tar.gz
mv-50e6f52f9f326d09ee5a2d0f8e8c2235c5e9cd22.tar.bz2
mv-50e6f52f9f326d09ee5a2d0f8e8c2235c5e9cd22.tar.xz
mv-50e6f52f9f326d09ee5a2d0f8e8c2235c5e9cd22.zip
fix some warnings.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/setup_touch.cpp8
-rw-r--r--src/gui/skilldialog.cpp4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/setup_touch.cpp b/src/gui/setup_touch.cpp
index 037e2bb20..8fa3c5a7f 100644
--- a/src/gui/setup_touch.cpp
+++ b/src/gui/setup_touch.cpp
@@ -89,19 +89,19 @@ Setup_Touch::Setup_Touch(const Widget2 *const widget) :
new SetupItemDropDown(_("Buttons size"), "", "screenButtonsSize", this,
"screenButtonsSizeEvent", mSizeList, 100);
- new SetupActionDropDown(strprintf(_("Button %u action"), 1), "",
+ new SetupActionDropDown(strprintf(_("Button %u action"), 1u), "",
"screenActionButton0", this, "screenActionButton0Event",
mActionsList, 250);
- new SetupActionDropDown(strprintf(_("Button %u action"), 2), "",
+ new SetupActionDropDown(strprintf(_("Button %u action"), 2u), "",
"screenActionButton1", this, "screenActionButton1Event",
mActionsList, 250);
- new SetupActionDropDown(strprintf(_("Button %u action"), 3), "",
+ new SetupActionDropDown(strprintf(_("Button %u action"), 3u), "",
"screenActionButton2", this, "screenActionButton2Event",
mActionsList, 250);
- new SetupActionDropDown(strprintf(_("Button %u action"), 4), "",
+ new SetupActionDropDown(strprintf(_("Button %u action"), 4u), "",
"screenActionButton3", this, "screenActionButton3Event",
mActionsList, 250);
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index db463f9e6..c89bf5697 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -511,12 +511,12 @@ void SkillDialog::loadSkills()
data->setIcon(icon);
if (skill->id < SKILL_VAR_MIN_ID)
{
- data->dispName = strprintf("%s, %d",
+ data->dispName = strprintf("%s, %u",
name.c_str(), skill->id);
}
else
{
- data->dispName = strprintf("%s, (%d)",
+ data->dispName = strprintf("%s, (%u)",
name.c_str(), skill->id - SKILL_VAR_MIN_ID);
}
data->shortName = XML::langProperty(node,