summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-01-10 17:19:24 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-01-10 17:20:33 +0100
commitf5a394a5051384a930d635da22ccafc6beb1cb84 (patch)
treed28fc14408a6bb91170e05880b4d2af6a17fcc14 /src/gui/chat.cpp
parent5757066312cab082378dbc5d8df97dea3fe40af0 (diff)
downloadmana-client-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.gz
mana-client-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.bz2
mana-client-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.xz
mana-client-f5a394a5051384a930d635da22ccafc6beb1cb84.zip
Change code style
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index c9defe33..d7b82de1 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -133,9 +133,8 @@ void ChatWindow::logic()
Window::logic();
Tab *tab = getFocused();
- if (tab != mCurrentTab) {
+ if (tab != mCurrentTab)
mCurrentTab = tab;
- }
}
ChatTab *ChatWindow::getFocused() const
@@ -336,7 +335,7 @@ void ChatWindow::mousePressed(gcn::MouseEvent &event)
{
Window::mousePressed(event);
- if(event.isConsumed())
+ if (event.isConsumed())
return;
mMoved = event.getY() <= mCurrentTab->getHeight();
@@ -349,10 +348,10 @@ void ChatWindow::mouseDragged(gcn::MouseEvent &event)
{
Window::mouseDragged(event);
- if(event.isConsumed())
+ if (event.isConsumed())
return;
- if(isMovable() && mMoved)
+ if (isMovable() && mMoved)
{
int newX = std::max(0, getX() + event.getX() - mDragOffsetX);
int newY = std::max(0, getY() + event.getY() - mDragOffsetY);