From 3bfa2d12234cc993145fb63501613a80dfe61b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 26 Apr 2008 11:33:08 +0000 Subject: [PATCH] style cleanup git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25174 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/InterfaceDefs.cpp | 2 +- src/kits/interface/RegionSupport.cpp | 8 ++++---- src/kits/interface/TabView.cpp | 14 +++++++------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/kits/interface/InterfaceDefs.cpp b/src/kits/interface/InterfaceDefs.cpp index 0d380423df..ba89b2c229 100644 --- a/src/kits/interface/InterfaceDefs.cpp +++ b/src/kits/interface/InterfaceDefs.cpp @@ -277,7 +277,7 @@ get_mouse_type(int32 *type) _control_input_server_(&command, &reply); - if(reply.FindInt32("mouse_type", type) != B_OK) + if (reply.FindInt32("mouse_type", type) != B_OK) return B_ERROR; return B_OK; diff --git a/src/kits/interface/RegionSupport.cpp b/src/kits/interface/RegionSupport.cpp index 2c118dc248..b8a8ed5bd8 100644 --- a/src/kits/interface/RegionSupport.cpp +++ b/src/kits/interface/RegionSupport.cpp @@ -105,13 +105,13 @@ using std::nothrow; * update region fBounds */ #define EXTENTS(r,idRect){\ - if((r)->left < (idRect)->fBounds.left)\ + if ((r)->left < (idRect)->fBounds.left)\ (idRect)->fBounds.left = (r)->left;\ - if((r)->top < (idRect)->fBounds.top)\ + if ((r)->top < (idRect)->fBounds.top)\ (idRect)->fBounds.top = (r)->top;\ - if((r)->right > (idRect)->fBounds.right)\ + if ((r)->right > (idRect)->fBounds.right)\ (idRect)->fBounds.right = (r)->right;\ - if((r)->bottom > (idRect)->fBounds.bottom)\ + if ((r)->bottom > (idRect)->fBounds.bottom)\ (idRect)->fBounds.bottom = (r)->bottom;\ } diff --git a/src/kits/interface/TabView.cpp b/src/kits/interface/TabView.cpp index 3fe1017054..56247d05f1 100644 --- a/src/kits/interface/TabView.cpp +++ b/src/kits/interface/TabView.cpp @@ -674,7 +674,7 @@ BTabView::Select(int32 index) tab = TabAt(index); if (tab && ContainerView()) { - if(index == 0) + if (index == 0) fTabOffset = 0.0f; tab->Select(ContainerView()); fSelection = index; @@ -682,8 +682,8 @@ BTabView::Select(int32 index) Invalidate(); - if(index != 0 && !Bounds().Contains(TabFrame(index))){ - if(!Bounds().Contains(TabFrame(index).LeftTop())) + if (index != 0 && !Bounds().Contains(TabFrame(index))){ + if (!Bounds().Contains(TabFrame(index).LeftTop())) fTabOffset += TabFrame(index).left - Bounds().left - 20.0f; else fTabOffset += TabFrame(index).right - Bounds().right + 20.0f; @@ -719,7 +719,7 @@ BTabView::SetFocusTab(int32 tab, bool focused) if (tab >= CountTabs()) tab = 0; - if(tab < 0) + if (tab < 0) tab = CountTabs() - 1; if (focused) { @@ -727,11 +727,11 @@ BTabView::SetFocusTab(int32 tab, bool focused) return; if (fFocus != -1){ - if(TabAt (fFocus) != NULL) + if (TabAt (fFocus) != NULL) TabAt(fFocus)->MakeFocus(false); Invalidate(TabFrame(fFocus)); } - if(TabAt(tab) != NULL){ + if (TabAt(tab) != NULL){ TabAt(tab)->MakeFocus(true); Invalidate(TabFrame(tab)); fFocus = tab; @@ -977,7 +977,7 @@ BTabView::RemoveTab(int32 index) if (index <= fSelection && fSelection != 0) fSelection--; - if(CountTabs() == 0) + if (CountTabs() == 0) fFocus = -1; else Select(fSelection);