From a360f4e0af9df1d5276f977d68ac2f357b14ffae Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 9 Nov 2012 16:21:59 +0300 Subject: Fix code style. --- src/gui/palette.h | 6 ++++-- src/gui/setup_video.cpp | 2 ++ src/gui/whoisonline.cpp | 1 - src/gui/windowmenu.cpp | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src/gui') diff --git a/src/gui/palette.h b/src/gui/palette.h index e36f59aae..1918a27ac 100644 --- a/src/gui/palette.h +++ b/src/gui/palette.h @@ -67,7 +67,8 @@ class Palette * * @return the requested color or Palette::BLACK */ - const gcn::Color &getCharColor(const signed char c, bool &valid) A_WARN_UNUSED; + const gcn::Color &getCharColor(const signed char c, + bool &valid) A_WARN_UNUSED; int getIdByChar(const signed char c, bool &valid) A_WARN_UNUSED; @@ -80,7 +81,8 @@ class Palette * * @return the requested color */ - inline const gcn::Color &getColor(int type, int alpha = 255) A_WARN_UNUSED + inline const gcn::Color &getColor(int type, + int alpha = 255) A_WARN_UNUSED { if (type >= static_cast(mColors.size()) || type < 0) { diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index 476640c46..eb2d51c56 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -108,6 +108,7 @@ class ModeListModel final : public gcn::ListModel StringVect mVideoModes; }; +#ifndef ANDROID static bool modeSorter(std::string mode1, std::string mode2); static bool modeSorter(std::string mode1, std::string mode2) @@ -129,6 +130,7 @@ static bool modeSorter(std::string mode1, std::string mode2) return false; } +#endif ModeListModel::ModeListModel() { diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp index fa3980024..4dd1df2b6 100644 --- a/src/gui/whoisonline.cpp +++ b/src/gui/whoisonline.cpp @@ -62,7 +62,6 @@ #undef malloc #endif - class NameFunctuator final { public: diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index 1b86b5dc9..6d66a1b63 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -89,7 +89,7 @@ WindowMenu::WindowMenu(const Widget2 *const widget) : addButton(":-)", _("Smilies"), x, h, Input::KEY_WINDOW_EMOTE_SHORTCUT, emoteShortcutWindow); addButton(N_("CH"), _("Chat"), x, h, - Input::KEY_WINDOW_CHAT, minimap, + Input::KEY_WINDOW_CHAT, chatWindow, #ifdef ANDROID true); #else -- cgit v1.2.3-70-g09d2