From e615cc513a05b98b8afce2c0407dcaf64660410f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 19 Jan 2008 13:56:42 +0000 Subject: [PATCH] minor cleanup git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23631 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/showimage/BackgroundImage.cpp | 4 ++-- src/apps/showimage/ResizerWindow.h | 22 +++++++++++----------- src/apps/showimage/ShowImageApp.cpp | 6 +++--- src/apps/showimage/ShowImageStatusView.h | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/apps/showimage/BackgroundImage.cpp b/src/apps/showimage/BackgroundImage.cpp index e277267724..671b868e7a 100644 --- a/src/apps/showimage/BackgroundImage.cpp +++ b/src/apps/showimage/BackgroundImage.cpp @@ -104,7 +104,7 @@ BackgroundImage::_NotifyTracker(BDirectory& directory, bool desktop) if (reply.FindMessenger("result", &trackerWindow) != B_OK) continue; - // found a window with poses, ask for its path + // found a window with poses, ask for its path msg.MakeEmpty(); msg.what = B_GET_PROPERTY; msg.AddSpecifier("Path"); @@ -114,7 +114,7 @@ BackgroundImage::_NotifyTracker(BDirectory& directory, bool desktop) reply.MakeEmpty(); tracker.SendMessage(&msg, &reply); - // go on with the next if this din't have a path + // go on with the next if this din't have a path if (reply.what == B_MESSAGE_NOT_UNDERSTOOD) continue; diff --git a/src/apps/showimage/ResizerWindow.h b/src/apps/showimage/ResizerWindow.h index 32104c904c..e9be45b5da 100644 --- a/src/apps/showimage/ResizerWindow.h +++ b/src/apps/showimage/ResizerWindow.h @@ -23,7 +23,7 @@ class BTextControl; class ResizerWindow : public BWindow { - public: + public: ResizerWindow(BMessenger target, int32 width, int32 height ); virtual void MessageReceived(BMessage* msg); @@ -39,7 +39,7 @@ class ResizerWindow : public BWindow { // provides the new size of the image in two "int32" fields "width" and "height" }; - private: + private: enum { kResolutionMsg = 'Rszr', kWidthModifiedMsg, @@ -52,15 +52,15 @@ class ResizerWindow : public BWindow { void AddSeparatorLine(BView* parent, BRect& rect); void LeftAlign(BControl* control); - BTextControl* fWidth; - BTextControl* fHeight; - BCheckBox* fAspectRatio; - BButton* fApply; - // the original size of the image use for aspect ratio calculation - // to avoid rounding errors - int32 fOriginalWidth; - int32 fOriginalHeight; - BMessenger fTarget; + BTextControl* fWidth; + BTextControl* fHeight; + BCheckBox* fAspectRatio; + BButton* fApply; + // the original size of the image use for aspect ratio calculation + // to avoid rounding errors + int32 fOriginalWidth; + int32 fOriginalHeight; + BMessenger fTarget; }; #endif // _RESIZER_WINDOW_H diff --git a/src/apps/showimage/ShowImageApp.cpp b/src/apps/showimage/ShowImageApp.cpp index 60fc31b3ea..d86d9f7088 100644 --- a/src/apps/showimage/ShowImageApp.cpp +++ b/src/apps/showimage/ShowImageApp.cpp @@ -179,9 +179,9 @@ ShowImageApp::RefsReceived(BMessage *message) entry_ref ref; for (int32 i = 0; i < count; i++) { - if (message->FindRef("refs", i, &ref) == B_OK) - Open(&ref); - } + if (message->FindRef("refs", i, &ref) == B_OK) + Open(&ref); + } } diff --git a/src/apps/showimage/ShowImageStatusView.h b/src/apps/showimage/ShowImageStatusView.h index 78d08bcd6b..faac45e1a2 100644 --- a/src/apps/showimage/ShowImageStatusView.h +++ b/src/apps/showimage/ShowImageStatusView.h @@ -42,7 +42,7 @@ public: void SetText(BString &text); private: - BString fText; + BString fText; }; #endif /* _ShowImageStatusView_h */