From 1d5e1e10214b2f992888045dc750c8d8b7937b21 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 28 Aug 2011 19:44:25 +0300 Subject: Fix code style. --- src/gui/socialwindow.cpp | 7 ++++++- src/gui/widgets/guildchattab.cpp | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp index 789d98b73..ca52ea283 100644 --- a/src/gui/socialwindow.cpp +++ b/src/gui/socialwindow.cpp @@ -1575,9 +1575,14 @@ void SocialWindow::selectPortal(unsigned num) int SocialWindow::getPortalIndex(int x, int y) { if (mNavigation) - return static_cast(mNavigation)->getPortalIndex(x, y); + { + return static_cast( + mNavigation)->getPortalIndex(x, y); + } else + { return -1; + } } void SocialWindow::addPortal(int x, int y) diff --git a/src/gui/widgets/guildchattab.cpp b/src/gui/widgets/guildchattab.cpp index 0d40506dd..0353ac23f 100644 --- a/src/gui/widgets/guildchattab.cpp +++ b/src/gui/widgets/guildchattab.cpp @@ -49,7 +49,8 @@ GuildChatTab::~GuildChatTab() { } -bool GuildChatTab::handleCommand(const std::string &type, const std::string &args) +bool GuildChatTab::handleCommand(const std::string &type, + const std::string &args) { if (type == "help") { -- cgit v1.2.3-70-g09d2