From 78f567c478b4f90c323b632f3b2cfe04d901250f Mon Sep 17 00:00:00 2001 From: Oliver Ruiz Dorantes Date: Sat, 25 Apr 2009 18:55:15 +0000 Subject: [PATCH] style git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30407 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/bluetooth/DeviceListItem.cpp | 37 ++++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/src/preferences/bluetooth/DeviceListItem.cpp b/src/preferences/bluetooth/DeviceListItem.cpp index 510841c235..801b126e93 100644 --- a/src/preferences/bluetooth/DeviceListItem.cpp +++ b/src/preferences/bluetooth/DeviceListItem.cpp @@ -19,20 +19,20 @@ namespace Bluetooth { DeviceListItem::DeviceListItem(BluetoothDevice* bDevice) - : BListItem() - , fDevice(bDevice) + : BListItem(), + fDevice(bDevice) { SetDevice(fDevice); } DeviceListItem::DeviceListItem(bdaddr_t bdaddr, DeviceClass dClass, int32 rssi) - : BListItem() - , fDevice(NULL) - , fAddress(bdaddr) - , fClass(dClass) - , fName("unknown") - , fRSSI(rssi) + : BListItem(), + fDevice(NULL), + fAddress(bdaddr), + fClass(dClass), + fName("unknown"), + fRSSI(rssi) { } @@ -59,13 +59,13 @@ DeviceListItem::DrawItem(BView* owner, BRect itemRect, bool complete) { rgb_color kBlack = { 0,0,0,0 }; rgb_color kHighlight = { 156,154,156,0 }; - - if (IsSelected() || complete) { - rgb_color color; - if (IsSelected()) - color = kHighlight; - else - color = owner->ViewColor(); + + if (IsSelected() || complete) { + rgb_color color; + if (IsSelected()) + color = kHighlight; + else + color = owner->ViewColor(); owner->SetHighColor(color); owner->SetLowColor(color); @@ -127,7 +127,7 @@ DeviceListItem::DrawItem(BView* owner, BRect itemRect, bool complete) #endif owner->SetHighColor(kBlack); - + } @@ -138,9 +138,8 @@ DeviceListItem::Update(BView *owner, const BFont *font) font_height height; font->GetHeight(&height); - SetHeight(MAX((height.ascent + height.descent + height.leading) * TEXT_ROWS + (TEXT_ROWS+1)*INSETS, - DeviceClass::PixelsForIcon + 2 * INSETS)); - + SetHeight(MAX((height.ascent + height.descent + height.leading) * TEXT_ROWS + + (TEXT_ROWS+1)*INSETS, DeviceClass::PixelsForIcon + 2 * INSETS)); }