diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-27 02:46:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-27 02:46:01 +0300 |
commit | ca2f3487d787f1d594143aad9bd8cafe14385e7e (patch) | |
tree | 04071983315c8b47d6538fad0e04ece6c510e24c /src | |
parent | 5abb097ac4c4c0220c7e165008b944cb618bae45 (diff) | |
download | manaverse-ca2f3487d787f1d594143aad9bd8cafe14385e7e.tar.gz manaverse-ca2f3487d787f1d594143aad9bd8cafe14385e7e.tar.bz2 manaverse-ca2f3487d787f1d594143aad9bd8cafe14385e7e.tar.xz manaverse-ca2f3487d787f1d594143aad9bd8cafe14385e7e.zip |
Fix some style issues in statspages.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/statspage.cpp | 5 | ||||
-rw-r--r-- | src/gui/widgets/statspagebasic.cpp | 5 | ||||
-rw-r--r-- | src/gui/widgets/statspagebasic.h | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/src/gui/widgets/statspage.cpp b/src/gui/widgets/statspage.cpp index 9b45ce227..49067b1b7 100644 --- a/src/gui/widgets/statspage.cpp +++ b/src/gui/widgets/statspage.cpp @@ -57,7 +57,10 @@ StatsPage::StatsPage(const Widget2 *const widget, FOR_EACH (std::vector<BasicStat>::const_iterator, it, basicStats) { const BasicStat &stat = *it; - AttrDisplay *disp = new DerDisplay(this, stat.attr, stat.name, stat.tag); + AttrDisplay *disp = new DerDisplay(this, + stat.attr, + stat.name, + stat.tag); disp->update(); mAttrCont->add2(disp, true); mAttrs[stat.attr] = disp; diff --git a/src/gui/widgets/statspagebasic.cpp b/src/gui/widgets/statspagebasic.cpp index 5732afd29..68e8e656d 100644 --- a/src/gui/widgets/statspagebasic.cpp +++ b/src/gui/widgets/statspagebasic.cpp @@ -57,7 +57,10 @@ StatsPageBasic::StatsPageBasic(const Widget2 *const widget) : FOR_EACH (std::vector<BasicStat>::const_iterator, it, basicStats) { const BasicStat &stat = *it; - AttrDisplay *disp = new ChangeDisplay(this, stat.attr, stat.name, stat.tag); + AttrDisplay *disp = new ChangeDisplay(this, + stat.attr, + stat.name, + stat.tag); disp->update(); mAttrCont->add2(disp, true); mAttrs[stat.attr] = disp; diff --git a/src/gui/widgets/statspagebasic.h b/src/gui/widgets/statspagebasic.h index 2f1b24e6f..79cbb2708 100644 --- a/src/gui/widgets/statspagebasic.h +++ b/src/gui/widgets/statspagebasic.h @@ -38,7 +38,7 @@ class StatsPageBasic final : public Container, public StatListener { public: - StatsPageBasic(const Widget2 *const widget); + explicit StatsPageBasic(const Widget2 *const widget); A_DELETE_COPY(StatsPageBasic) |