summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/characterviewsmall.cpp3
-rw-r--r--src/gui/widgets/characterviewsmall.h6
2 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/widgets/characterviewsmall.cpp b/src/gui/widgets/characterviewsmall.cpp
index 59cdd8150..fa654b94d 100644
--- a/src/gui/widgets/characterviewsmall.cpp
+++ b/src/gui/widgets/characterviewsmall.cpp
@@ -43,8 +43,7 @@ CharacterViewSmall::CharacterViewSmall(CharSelectDialog *const widget,
FOR_EACHP (std::vector<CharacterDisplay*>::iterator,
it, entries)
{
- CharacterDisplay *character = *it;
- add(character);
+ add(*it);
}
show(0);
}
diff --git a/src/gui/widgets/characterviewsmall.h b/src/gui/widgets/characterviewsmall.h
index 2ad1f83d3..13e27c5d2 100644
--- a/src/gui/widgets/characterviewsmall.h
+++ b/src/gui/widgets/characterviewsmall.h
@@ -23,7 +23,7 @@
#include "gui/widgets/characterviewbase.h"
-#include "debug.h"
+#include "localconsts.h"
class CharacterViewBase;
@@ -37,9 +37,9 @@ class CharacterViewSmall final : public CharacterViewBase
~CharacterViewSmall();
- void show(const int i);
+ void show(const int i) override;
- void resize();
+ void resize() override;
void action(const gcn::ActionEvent &event) override;