diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-12-13 22:56:33 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-12-13 22:56:33 +0100 |
commit | 59f441730d8dbd7574b2fe4c9a430be256449cab (patch) | |
tree | fe01d073652e9c0615828afc0d99ac6ee35b75fd /src/gui/skill.cpp | |
parent | 7d5c6124e9c9cf447286eaa58afe17adf6c1a81d (diff) | |
download | mana-59f441730d8dbd7574b2fe4c9a430be256449cab.tar.gz mana-59f441730d8dbd7574b2fe4c9a430be256449cab.tar.bz2 mana-59f441730d8dbd7574b2fe4c9a430be256449cab.tar.xz mana-59f441730d8dbd7574b2fe4c9a430be256449cab.zip |
Code style reformatting
Got rid of "void" in functions that take no arguments and removed the
newline after the return type of a method in many places.
Diffstat (limited to 'src/gui/skill.cpp')
-rw-r--r-- | src/gui/skill.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp index 1b7466ff..82108f84 100644 --- a/src/gui/skill.cpp +++ b/src/gui/skill.cpp @@ -43,7 +43,7 @@ struct SkillInfo { std::vector<SkillInfo> skill_db; -static void initSkillinfo(void); +static void initSkillinfo(); class SkillGuiTableModel : public StaticTableModel { @@ -56,11 +56,9 @@ public: update(); } - virtual int - getRows(void) { return mEntriesNr; } + virtual int getRows() { return mEntriesNr; } - virtual int - getColumnWidth(int index) + virtual int getColumnWidth(int index) { switch (index) { case 0: return 160; @@ -68,14 +66,12 @@ public: } } - virtual int - getRowHeight(void) + virtual int getRowHeight() { return 12; } - virtual void - update(void) + virtual void update() { static const SkillInfo fakeSkillInfo = { "Mystery Skill", false }; @@ -108,7 +104,6 @@ public: } } - private: SkillDialog *mDialog; int mEntriesNr; @@ -250,8 +245,7 @@ void SkillDialog::cleanList() mSkillList.clear(); } -static void -initSkillinfo(void) +static void initSkillinfo() { SkillInfo emptySkillInfo = { "", false }; |