diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-21 19:29:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-21 19:29:00 +0300 |
commit | 24fcf548c2d570d1b23bf799159b64f170f738bd (patch) | |
tree | 8edc089f957791d394b0f65cdb6c079b9d2963c1 /src/gui/skilldialog.cpp | |
parent | b84d24167a06f5ab15394045600bb79834f3953a (diff) | |
download | plus-24fcf548c2d570d1b23bf799159b64f170f738bd.tar.gz plus-24fcf548c2d570d1b23bf799159b64f170f738bd.tar.bz2 plus-24fcf548c2d570d1b23bf799159b64f170f738bd.tar.xz plus-24fcf548c2d570d1b23bf799159b64f170f738bd.zip |
Fix code style and other small issues.
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r-- | src/gui/skilldialog.cpp | 12 |
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; |