From a76b231c98d0ee0239fd43f5a4fa273eb46180fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 18 Nov 2009 17:14:01 +0000 Subject: [PATCH] * Cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34116 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/deskbar/Switcher.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/apps/deskbar/Switcher.cpp b/src/apps/deskbar/Switcher.cpp index 1db4fbe91e..c6785b243a 100644 --- a/src/apps/deskbar/Switcher.cpp +++ b/src/apps/deskbar/Switcher.cpp @@ -1190,12 +1190,12 @@ TSwitchManager::SwitchWindow(team_id team, bool, bool activate) client_window_info* windowInfo = get_window_info(tokens[i]); if (windowInfo && IsVisibleInCurrentWorkspace(windowInfo) && teamGroup->TeamList()->HasItem((void*)windowInfo->team)) { - fWindowID = windowInfo->server_token; - if (activate) - ActivateWindow(windowInfo->server_token); + fWindowID = windowInfo->server_token; + if (activate) + ActivateWindow(windowInfo->server_token); - free(windowInfo); - break; + free(windowInfo); + break; } free(windowInfo); } @@ -1243,11 +1243,12 @@ TSwitchManager::GroupList() TBox::TBox(BRect bounds, TSwitchManager* manager, TSwitcherWindow* window, - TIconView* iview) - : BBox(bounds, "top", B_FOLLOW_NONE, B_WILL_DRAW, B_NO_BORDER), + TIconView* iconView) + : + BBox(bounds, "top", B_FOLLOW_NONE, B_WILL_DRAW, B_NO_BORDER), fManager(manager), fWindow(window), - fIconView(iview), + fIconView(iconView), fLeftScroller(false), fRightScroller(false) {