From 0086654c682690d31d5ca234cd40de6a2ffdd3e6 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Mon, 1 Feb 2010 05:36:59 +0000 Subject: [PATCH] Automatic whitespace cleanup, no functional change. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35376 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/CountView.cpp | 13 ++++++------- src/kits/tracker/CountView.h | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/kits/tracker/CountView.cpp b/src/kits/tracker/CountView.cpp index 46e7b2a878..dba07bf218 100644 --- a/src/kits/tracker/CountView.cpp +++ b/src/kits/tracker/CountView.cpp @@ -216,14 +216,13 @@ BCountView::Draw(BRect updateRect) else if (IsFiltering()) { itemString << fLastCount << " " << Filter(); } else { - if (fLastCount == 0) + if (fLastCount == 0) itemString << "no items"; - else if (fLastCount == 1) + else if (fLastCount == 1) itemString << "1 item"; - else + else itemString << fLastCount << " items"; } - BString string(itemString); BRect textRect(TextInvalRect()); @@ -253,7 +252,7 @@ BCountView::Draw(BRect updateRect) AddLine(bounds.LeftTop(), bounds.RightTop(), light); AddLine(bounds.LeftTop(), bounds.LeftBottom(), light); bounds.top--; - + AddLine(bounds.LeftTop(), bounds.RightTop(), shadow); AddLine(BPoint(bounds.right, bounds.top + 2), bounds.RightBottom(), lightShadow); AddLine(bounds.LeftBottom(), bounds.RightBottom(), lightShadow); @@ -282,7 +281,7 @@ BCountView::Draw(BRect updateRect) BRegion region; region.Set(BarberPoleInnerRect()); - ConstrainClippingRegion(®ion); + ConstrainClippingRegion(®ion); if (fBarberPoleMap) DrawBitmap(fBarberPoleMap, destRect); @@ -340,7 +339,7 @@ BCountView::SetTypeAhead(const char *string) } -const char * +const char * BCountView::TypeAhead() const { return fTypeAheadString.String(); diff --git a/src/kits/tracker/CountView.h b/src/kits/tracker/CountView.h index 897e34d8b3..f876c486d5 100644 --- a/src/kits/tracker/CountView.h +++ b/src/kits/tracker/CountView.h @@ -58,7 +58,7 @@ public: void CheckCount(); void StartBarberPole(); void EndBarberPole(); - + void SetTypeAhead(const char *); const char *TypeAhead() const; bool IsTypingAhead() const;