summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/statspage.cpp5
-rw-r--r--src/gui/widgets/statspagebasic.cpp5
-rw-r--r--src/gui/widgets/statspagebasic.h2
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)