From 256b20612d17e0cbe44332538cdedd2ef5f1a498 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 30 May 2013 12:32:25 +0300 Subject: improve characterviewsmall. --- src/gui/widgets/characterviewsmall.cpp | 3 +-- src/gui/widgets/characterviewsmall.h | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src/gui') 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::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; -- cgit v1.2.3-70-g09d2