Style fix. Take out 3 sets of unneeded curly braces.

This commit is contained in:
John Scipione 2012-04-06 19:58:59 -04:00
parent e6874452d0
commit 3ea5972eb5

View File

@ -121,9 +121,9 @@ TExpandoMenuBar::AttachedToWindow()
desk_settings* settings = static_cast<TBarApp*>(be_app)->Settings(); desk_settings* settings = static_cast<TBarApp*>(be_app)->Settings();
float itemWidth = -0.1f; float itemWidth = -0.1f;
if (fVertical) { if (fVertical)
itemWidth = Frame().Width(); itemWidth = Frame().Width();
} else { else {
itemWidth = iconSize; itemWidth = iconSize;
if (fDrawLabel) if (fDrawLabel)
itemWidth += sMinimumWindowWidth - kMinimumIconSize; itemWidth += sMinimumWindowWidth - kMinimumIconSize;
@ -523,9 +523,9 @@ TExpandoMenuBar::AddTeam(BList* team, BBitmap* icon, char* name,
int32 iconSize = static_cast<TBarApp*>(be_app)->IconSize(); int32 iconSize = static_cast<TBarApp*>(be_app)->IconSize();
float itemWidth = -1.0f; float itemWidth = -1.0f;
if (fVertical) { if (fVertical)
itemWidth = fBarView->Bounds().Width(); itemWidth = fBarView->Bounds().Width();
} else { else {
itemWidth = iconSize; itemWidth = iconSize;
if (fDrawLabel) if (fDrawLabel)
itemWidth += sMinimumWindowWidth - kMinimumIconSize; itemWidth += sMinimumWindowWidth - kMinimumIconSize;
@ -537,9 +537,9 @@ TExpandoMenuBar::AddTeam(BList* team, BBitmap* icon, char* name,
TTeamMenuItem* item = new TTeamMenuItem(team, icon, name, signature, TTeamMenuItem* item = new TTeamMenuItem(team, icon, name, signature,
itemWidth, itemHeight, fDrawLabel, fVertical); itemWidth, itemHeight, fDrawLabel, fVertical);
if (settings->trackerAlwaysFirst && !strcmp(signature, kTrackerSignature)) { if (settings->trackerAlwaysFirst && !strcmp(signature, kTrackerSignature))
AddItem(item, fFirstApp); AddItem(item, fFirstApp);
} else if (settings->sortRunningApps) { else if (settings->sortRunningApps) {
TTeamMenuItem* teamItem TTeamMenuItem* teamItem
= dynamic_cast<TTeamMenuItem*>(ItemAt(fFirstApp)); = dynamic_cast<TTeamMenuItem*>(ItemAt(fFirstApp));
int32 firstApp = fFirstApp; int32 firstApp = fFirstApp;