summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-21 19:29:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-21 19:29:00 +0300
commit24fcf548c2d570d1b23bf799159b64f170f738bd (patch)
tree8edc089f957791d394b0f65cdb6c079b9d2963c1 /src/gui/skilldialog.cpp
parentb84d24167a06f5ab15394045600bb79834f3953a (diff)
downloadmv-24fcf548c2d570d1b23bf799159b64f170f738bd.tar.gz
mv-24fcf548c2d570d1b23bf799159b64f170f738bd.tar.bz2
mv-24fcf548c2d570d1b23bf799159b64f170f738bd.tar.xz
mv-24fcf548c2d570d1b23bf799159b64f170f738bd.zip
Fix code style and other small issues.
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r--src/gui/skilldialog.cpp12
1 files changed, 6 insertions, 6 deletions
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;