From c3c3360f40a6d4fc4045d02065de2abef819b0da Mon Sep 17 00:00:00 2001 From: John Scipione Date: Thu, 19 Oct 2017 16:42:46 -0700 Subject: [PATCH] Deskbar and PowerStatus: style updates 80 char limit in BarApp.cpp 2 newlines and remove unnecessary curly braces in StatusView.cpp Replicant: tiny whitespace style fix and remove trailing tab chars --- src/apps/deskbar/BarApp.cpp | 3 ++- src/apps/deskbar/StatusView.cpp | 3 +-- src/apps/powerstatus/PowerStatus.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apps/deskbar/BarApp.cpp b/src/apps/deskbar/BarApp.cpp index daad133d80..c6949f90a2 100644 --- a/src/apps/deskbar/BarApp.cpp +++ b/src/apps/deskbar/BarApp.cpp @@ -475,7 +475,8 @@ TBarApp::MessageReceived(BMessage* message) if (fPreferencesWindow != NULL) fPreferencesWindow->PostMessage(kUpdatePreferences); - fBarWindow->SetFeel(fSettings.alwaysOnTop ? B_FLOATING_ALL_WINDOW_FEEL + fBarWindow->SetFeel(fSettings.alwaysOnTop + ? B_FLOATING_ALL_WINDOW_FEEL : B_NORMAL_WINDOW_FEEL); break; diff --git a/src/apps/deskbar/StatusView.cpp b/src/apps/deskbar/StatusView.cpp index 112ce979e0..6d720fa7e2 100644 --- a/src/apps/deskbar/StatusView.cpp +++ b/src/apps/deskbar/StatusView.cpp @@ -90,6 +90,7 @@ const char* const kReplicantPathField = "replicant_path"; float gMinimumWindowWidth = kGutter + kMinimumTrayWidth + kDragRegionWidth; float gMaximumWindowWidth = gMinimumWindowWidth * 2; + static void DumpItem(DeskbarItemInfo* item) { @@ -271,7 +272,6 @@ TReplicantTray::MessageReceived(BMessage* message) { switch (message->what) { case B_LOCALE_CHANGED: - { if (fTime == NULL) return; @@ -281,7 +281,6 @@ TReplicantTray::MessageReceived(BMessage* message) RealignReplicants(); AdjustPlacement(); break; - } case kShowHideTime: // from context menu in clock and in this view diff --git a/src/apps/powerstatus/PowerStatus.cpp b/src/apps/powerstatus/PowerStatus.cpp index 06b9355e28..bf342b0314 100644 --- a/src/apps/powerstatus/PowerStatus.cpp +++ b/src/apps/powerstatus/PowerStatus.cpp @@ -84,7 +84,7 @@ PowerStatus::ReadyToRun() isInstalled = deskbar.HasItem(kDeskbarItemName); } - if (isDeskbarRunning && !isInstalled) { + if (isDeskbarRunning && !isInstalled) { BAlert* alert = new BAlert("", B_TRANSLATE("You can run PowerStatus in a window " "or install it in the Deskbar."), B_TRANSLATE("Run in window"),