* style adjustments - no functional change

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38200 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe
2010-08-17 16:47:14 +00:00
parent 37cebf6883
commit 1195f511e5
2 changed files with 41 additions and 37 deletions
+9 -5
View File
@@ -12,6 +12,7 @@
#include <BeBuild.h> #include <BeBuild.h>
#include <Messenger.h> #include <Messenger.h>
class BHandler; class BHandler;
class BLooper; class BLooper;
class BMessage; class BMessage;
@@ -20,17 +21,18 @@ class BMessage;
class BInvoker { class BInvoker {
public: public:
BInvoker(); BInvoker();
BInvoker(BMessage* message, const BHandler* handler, BInvoker(BMessage* message,
const BHandler* handler,
const BLooper* looper = NULL); const BLooper* looper = NULL);
BInvoker(BMessage* message, BMessenger target); BInvoker(BMessage* message, BMessenger target);
virtual ~BInvoker(); virtual ~BInvoker();
virtual status_t SetMessage(BMessage *message); virtual status_t SetMessage(BMessage* message);
BMessage* Message() const; BMessage* Message() const;
uint32 Command() const; uint32 Command() const;
virtual status_t SetTarget(const BHandler *handler, virtual status_t SetTarget(const BHandler* handler,
const BLooper *looper = NULL); const BLooper* looper = NULL);
virtual status_t SetTarget(BMessenger messenger); virtual status_t SetTarget(BMessenger messenger);
bool IsTargetLocal() const; bool IsTargetLocal() const;
BHandler* Target(BLooper** _looper = NULL) const; BHandler* Target(BLooper** _looper = NULL) const;
@@ -47,7 +49,8 @@ public:
protected: protected:
uint32 InvokeKind(bool* _notify = NULL); uint32 InvokeKind(bool* _notify = NULL);
void BeginInvokeNotify(uint32 kind = B_CONTROL_INVOKED); void BeginInvokeNotify(
uint32 kind = B_CONTROL_INVOKED);
void EndInvokeNotify(); void EndInvokeNotify();
private: private:
@@ -66,4 +69,5 @@ private:
uint32 _reserved[1]; uint32 _reserved[1];
}; };
#endif // _INVOKER_H #endif // _INVOKER_H
+2 -2
View File
@@ -62,7 +62,7 @@ BInvoker::SetMessage(BMessage* message)
} }
BMessage * BMessage*
BInvoker::Message() const BInvoker::Message() const
{ {
return fMessage; return fMessage;
@@ -124,7 +124,7 @@ BInvoker::SetHandlerForReply(BHandler* replyHandler)
} }
BHandler * BHandler*
BInvoker::HandlerForReply() const BInvoker::HandlerForReply() const
{ {
return fReplyTo; return fReplyTo;