From 24fcf548c2d570d1b23bf799159b64f170f738bd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 21 Dec 2012 19:29:00 +0300 Subject: Fix code style and other small issues. --- src/gui/skilldialog.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gui/skilldialog.cpp') 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; -- cgit v1.2.3-70-g09d2