summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/outfitwindow.cpp2
-rw-r--r--src/gui/outfitwindow.h2
-rw-r--r--src/gui/skilldialog.cpp12
-rw-r--r--src/gui/widgets/popuplist.cpp2
4 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/outfitwindow.cpp b/src/gui/outfitwindow.cpp
index a79fd5fbc..383b85ca7 100644
--- a/src/gui/outfitwindow.cpp
+++ b/src/gui/outfitwindow.cpp
@@ -65,6 +65,7 @@ OutfitWindow::OutfitWindow():
serverConfig.getValueBool("OutfitUnequip0", true))),
mAwayOutfitCheck(new CheckBox(this, _("Away outfit"),
serverConfig.getValue("OutfitAwayIndex", OUTFITS_COUNT - 1))),
+ mCurrentOutfit(0),
mKeyLabel(new Label(this, strprintf(_("Key: %s"),
keyName(mCurrentOutfit).c_str()))),
mBoxWidth(33),
@@ -77,7 +78,6 @@ OutfitWindow::OutfitWindow():
mItemMoved(nullptr),
mItemSelected(-1),
mItemColorSelected(1),
- mCurrentOutfit(0),
mAwayOutfit(0)
{
setWindowName("Outfits");
diff --git a/src/gui/outfitwindow.h b/src/gui/outfitwindow.h
index c70d97fa6..2893c8495 100644
--- a/src/gui/outfitwindow.h
+++ b/src/gui/outfitwindow.h
@@ -115,6 +115,7 @@ class OutfitWindow final : public Window, private gcn::ActionListener
Label *mCurrentLabel;
CheckBox *mUnequipCheck;
CheckBox *mAwayOutfitCheck;
+ int mCurrentOutfit;
Label *mKeyLabel;
int getIndexFromGrid(const int pointX,
@@ -137,7 +138,6 @@ class OutfitWindow final : public Window, private gcn::ActionListener
int mItemSelected;
unsigned char mItemColorSelected;
- int mCurrentOutfit;
int mAwayOutfit;
gcn::Color mBorderColor;
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index ee2834a35..aa60fedb1 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -714,22 +714,22 @@ void SkillInfo::draw(Graphics *const graphics, const int padding,
graphics->drawText(skillLevel, width - skillLevelWidth, yPad);
}
-void SkillInfo::addData(const int l, SkillData *const d)
+void SkillInfo::addData(const int level1, SkillData *const data1)
{
- dataMap[l] = d;
+ dataMap[level1] = data1;
}
-SkillData *SkillInfo::getData(const int l)
+SkillData *SkillInfo::getData(const int level1)
{
- SkillDataMapIter it = dataMap.find(l);
+ SkillDataMapIter it = dataMap.find(level1);
if (it == dataMap.end())
return nullptr;
return (*it).second;
}
-SkillData *SkillInfo::getData1(const int l)
+SkillData *SkillInfo::getData1(const int level)
{
- SkillDataMapIter it = dataMap.find(l);
+ SkillDataMapIter it = dataMap.find(level);
if (it == dataMap.end())
return dataMap[0];
return (*it).second;
diff --git a/src/gui/widgets/popuplist.cpp b/src/gui/widgets/popuplist.cpp
index d9f44da94..211de45e5 100644
--- a/src/gui/widgets/popuplist.cpp
+++ b/src/gui/widgets/popuplist.cpp
@@ -115,7 +115,7 @@ void PopupList::adjustSize()
mListBox->setWidth(getWidth() - pad2);
}
-void PopupList::mousePressed(gcn::MouseEvent& mouseEvent)
+void PopupList::mousePressed(gcn::MouseEvent& mouseEvent A_UNUSED)
{
if (mDropDown)
mDropDown->updateSelection();