From 9f7b8c72a2cc6ddf13b3b23dfcf272302de13cee Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 20 Jun 2014 17:45:15 -0400 Subject: [PATCH] Tracker: style fixes to FilePermissionsView --- src/kits/tracker/FilePermissionsView.cpp | 17 +++++++++++------ src/kits/tracker/FilePermissionsView.h | 8 ++++---- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/kits/tracker/FilePermissionsView.cpp b/src/kits/tracker/FilePermissionsView.cpp index f5b7bbf7f5..eeced905c2 100644 --- a/src/kits/tracker/FilePermissionsView.cpp +++ b/src/kits/tracker/FilePermissionsView.cpp @@ -43,17 +43,22 @@ All rights reserved. #include +#undef B_TRANSLATION_CONTEXT +#define B_TRANSLATION_CONTEXT "FilePermissionsView" + + const uint32 kPermissionsChanged = 'prch'; const uint32 kNewOwnerEntered = 'nwow'; const uint32 kNewGroupEntered = 'nwgr'; -#undef B_TRANSLATION_CONTEXT -#define B_TRANSLATION_CONTEXT "FilePermissionsView" +// #pragma mark - FilePermissionsView + FilePermissionsView::FilePermissionsView(BRect rect, Model* model) - : BView(rect, "FilePermissionsView", B_FOLLOW_LEFT_RIGHT, B_WILL_DRAW), - fModel(model) + : + BView(rect, "FilePermissionsView", B_FOLLOW_LEFT_RIGHT, B_WILL_DRAW), + fModel(model) { // Constants for the column labels: "User", "Group" and "Other". const float kColumnLabelMiddle = 77, kColumnLabelTop = 6, @@ -269,8 +274,8 @@ FilePermissionsView::ModelChanged(Model* model) } else fGroupTextControl->SetText(B_TRANSLATE("Unknown")); - // Unless we're root, only allow the owner to transfer the ownership, - // i.e. disable text controls if uid:s doesn't match: + // Unless we're root, only allow the owner to transfer the + // ownership, i.e. disable text controls if uid:s doesn't match: thread_id thisThread = find_thread(NULL); thread_info threadInfo; get_thread_info(thisThread, &threadInfo); diff --git a/src/kits/tracker/FilePermissionsView.h b/src/kits/tracker/FilePermissionsView.h index 06ce35469f..c67bee6b71 100644 --- a/src/kits/tracker/FilePermissionsView.h +++ b/src/kits/tracker/FilePermissionsView.h @@ -31,8 +31,8 @@ of Be Incorporated in the United States and other countries. Other brand product names are registered trademarks or trademarks of their respective holders. All rights reserved. */ -#ifndef FILE_PERMISSIONS_VIEW_H -#define FILE_PERMISSIONS_VIEW_H +#ifndef _FILE_PERMISSIONS_VIEW_H +#define _FILE_PERMISSIONS_VIEW_H #include @@ -94,9 +94,9 @@ class FilePermissionsView : public BView { typedef BView _inherited; }; - } // namespace BPrivate using namespace BPrivate; -#endif // FILE_PERMISSIONS_VIEW_H + +#endif // _FILE_PERMISSIONS_VIEW_H