From a7e43b872137aabb8b0c92037ae69a4555948fe7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 29 Nov 2015 15:35:14 +0300 Subject: Fix code style. --- src/gui/windows/textselectdialog.cpp | 5 ++--- src/gui/windows/textselectdialog.h | 11 +++-------- 2 files changed, 5 insertions(+), 11 deletions(-) (limited to 'src/gui/windows') diff --git a/src/gui/windows/textselectdialog.cpp b/src/gui/windows/textselectdialog.cpp index 7f6de8617..9db45d7c7 100644 --- a/src/gui/windows/textselectdialog.cpp +++ b/src/gui/windows/textselectdialog.cpp @@ -29,7 +29,6 @@ #include "gui/widgets/button.h" #include "gui/widgets/containerplacer.h" #include "gui/widgets/createwidget.h" -#include "gui/widgets/label.h" #include "gui/widgets/layout.h" #include "gui/widgets/layouttype.h" #include "gui/widgets/listbox.h" @@ -37,7 +36,6 @@ #include "utils/delete2.h" #include "utils/gettext.h" -#include "utils/stringutils.h" #include "debug.h" @@ -53,7 +51,8 @@ TextSelectDialog::TextSelectDialog(const std::string &name, mQuitButton(nullptr), mItemList(nullptr), mScrollArea(nullptr), - mModel(nullptr) + mModel(nullptr), + mTag(0) { } diff --git a/src/gui/windows/textselectdialog.h b/src/gui/windows/textselectdialog.h index 86a834d2e..10c49e7b8 100644 --- a/src/gui/windows/textselectdialog.h +++ b/src/gui/windows/textselectdialog.h @@ -20,10 +20,8 @@ * along with this program. If not, see . */ -#ifndef GUI_WIDGETS_TEXTSELECTDIALOG_H -#define GUI_WIDGETS_TEXTSELECTDIALOG_H - -#include "enums/simpletypes/itemcolor.h" +#ifndef GUI_WINDOWS_TEXTSELECTDIALOG_H +#define GUI_WINDOWS_TEXTSELECTDIALOG_H #include "gui/widgets/window.h" @@ -31,10 +29,7 @@ #include "listeners/selectionlistener.h" class Button; -class Item; -class Label; class ScrollArea; -class ShopItem; class NamesModel; class ListBox; @@ -102,4 +97,4 @@ class TextSelectDialog notfinal : public Window, int mTag; }; -#endif // GUI_WIDGETS_TEXTSELECTDIALOG_H +#endif // GUI_WINDOWS_TEXTSELECTDIALOG_H -- cgit v1.2.3-60-g2f50