From 775ad007b57684fd863b012a7f984f4203d98d00 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 20 Jun 2014 19:13:52 -0400 Subject: [PATCH] Tracker: style fixes to SelectionWindow --- src/kits/tracker/SelectionWindow.cpp | 14 +++++++++----- src/kits/tracker/SelectionWindow.h | 1 + 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/kits/tracker/SelectionWindow.cpp b/src/kits/tracker/SelectionWindow.cpp index 402bf96808..4eaaa41b4d 100644 --- a/src/kits/tracker/SelectionWindow.cpp +++ b/src/kits/tracker/SelectionWindow.cpp @@ -50,6 +50,9 @@ All rights reserved. const uint32 kSelectButtonPressed = 'sbpr'; +// #pragma mark - SelectionWindow + + #undef B_TRANSLATION_CONTEXT #define B_TRANSLATION_CONTEXT "SelectionWindow" @@ -58,8 +61,8 @@ SelectionWindow::SelectionWindow(BContainerWindow* window) : BWindow(BRect(0, 0, 270, 0), B_TRANSLATE("Select"), B_TITLED_WINDOW, B_NOT_ZOOMABLE | B_NOT_MINIMIZABLE | B_NOT_V_RESIZABLE - | B_NO_WORKSPACE_ACTIVATION | B_ASYNCHRONOUS_CONTROLS - | B_NOT_ANCHORED_ON_ACTIVATE), + | B_NO_WORKSPACE_ACTIVATION | B_ASYNCHRONOUS_CONTROLS + | B_NOT_ANCHORED_ON_ACTIVATE), fParentWindow(window) { if (window->Feel() & kPrivateDesktopWindowFeel) { @@ -220,6 +223,7 @@ SelectionWindow::MessageReceived(BMessage* message) default: _inherited::MessageReceived(message); + break; } } @@ -265,7 +269,7 @@ SelectionWindow::ExpressionType() const return kNone; BMenuItem* item = fMatchingTypeMenuField->Menu()->FindMarked(); - if (!item) { + if (item == NULL) { fMatchingTypeMenuField->UnlockLooper(); return kNone; } @@ -300,7 +304,7 @@ bool SelectionWindow::IgnoreCase() const { if (!fIgnoreCaseCheckBox->LockLooper()) { - // default action. + // default action return true; } @@ -316,7 +320,7 @@ bool SelectionWindow::Invert() const { if (!fInverseCheckBox->LockLooper()) { - // default action. + // default action return false; } diff --git a/src/kits/tracker/SelectionWindow.h b/src/kits/tracker/SelectionWindow.h index c4f37ef2d3..e2dbf24b87 100644 --- a/src/kits/tracker/SelectionWindow.h +++ b/src/kits/tracker/SelectionWindow.h @@ -79,4 +79,5 @@ private: using namespace BPrivate; + #endif // _SELECTION_WINDOW_H