From f5a394a5051384a930d635da22ccafc6beb1cb84 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 10 Jan 2010 17:19:24 +0200 Subject: Change code style --- src/gui/chat.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/gui/chat.cpp') 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); -- cgit v1.2.3-70-g09d2