From 5b4e74ab44a2ae4eab9db71c860885802e2ba28d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 11 Jan 2015 21:49:16 +0300 Subject: Fix code style. --- src/gui/windows/charcreatedialog.cpp | 5 +++-- src/gui/windows/charcreatedialog.h | 1 - src/gui/windows/chatwindow.h | 2 -- src/gui/windows/updaterwindow.cpp | 3 ++- 4 files changed, 5 insertions(+), 6 deletions(-) (limited to 'src/gui') diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp index fe22b0317..1452433d6 100644 --- a/src/gui/windows/charcreatedialog.cpp +++ b/src/gui/windows/charcreatedialog.cpp @@ -35,7 +35,6 @@ #include "gui/windows/charselectdialog.h" #include "gui/widgets/label.h" #include "gui/widgets/playerbox.h" -#include "gui/widgets/radiobutton.h" #include "gui/widgets/slider.h" #include "gui/widgets/tabstrip.h" #include "gui/widgets/textfield.h" @@ -216,7 +215,9 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, if (serverFeatures->haveCreateCharGender()) { const int size = config.getIntValue("fontSize"); - mGenderStrip = new TabStrip(this, "gender_" + getWindowName(), size + 16); + mGenderStrip = new TabStrip(this, + "gender_" + getWindowName(), + size + 16); mGenderStrip->setPressFirst(false); mGenderStrip->addActionListener(this); mGenderStrip->setActionEventId("gender_"); diff --git a/src/gui/windows/charcreatedialog.h b/src/gui/windows/charcreatedialog.h index d179982ad..ed1a8fcf3 100644 --- a/src/gui/windows/charcreatedialog.h +++ b/src/gui/windows/charcreatedialog.h @@ -35,7 +35,6 @@ class Button; class CharSelectDialog; class Label; class PlayerBox; -class RadioButton; class Slider; class TabStrip; class TextField; diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h index df8ba8b06..d0af5a74c 100644 --- a/src/gui/windows/chatwindow.h +++ b/src/gui/windows/chatwindow.h @@ -23,8 +23,6 @@ #ifndef GUI_WINDOWS_CHATWINDOW_H #define GUI_WINDOWS_CHATWINDOW_H -#include "enums/being/beingdirection.h" - #include "enums/gui/chatmsgtype.h" #include "gui/widgets/window.h" diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp index 37f0f283f..30477821e 100644 --- a/src/gui/windows/updaterwindow.cpp +++ b/src/gui/windows/updaterwindow.cpp @@ -1045,7 +1045,8 @@ bool UpdaterWindow::validateFile(const std::string &filePath, unsigned long UpdaterWindow::getFileHash(const std::string &filePath) { int size = 0; - const char *const buf = static_cast(PhysFs::loadFile(filePath, size)); + const char *const buf = static_cast( + PhysFs::loadFile(filePath, size)); if (!buf) return 0; return Net::Download::adlerBuffer(buf, size); -- cgit v1.2.3-70-g09d2