BPathMonitor: pass BMessenger by reference

This commit is contained in:
Ingo Weinhold 2013-06-23 13:12:38 +02:00
parent 7b198d812e
commit 38afe232de
2 changed files with 7 additions and 6 deletions

View File

@ -28,11 +28,11 @@ public:
public:
static status_t StartWatching(const char* path, uint32 flags,
BMessenger target);
const BMessenger& target);
static status_t StopWatching(const char* path,
BMessenger target);
static status_t StopWatching(BMessenger target);
const BMessenger& target);
static status_t StopWatching(const BMessenger& target);
static void SetWatchingInterface(
BWatchingInterface* watchingInterface);

View File

@ -1016,7 +1016,8 @@ BPathMonitor::_Init()
/*static*/ status_t
BPathMonitor::StartWatching(const char* path, uint32 flags, BMessenger target)
BPathMonitor::StartWatching(const char* path, uint32 flags,
const BMessenger& target)
{
TRACE("StartWatching(%s)\n", path);
@ -1056,7 +1057,7 @@ BPathMonitor::StartWatching(const char* path, uint32 flags, BMessenger target)
/*static*/ status_t
BPathMonitor::StopWatching(const char* path, BMessenger target)
BPathMonitor::StopWatching(const char* path, const BMessenger& target)
{
if (sLocker == NULL)
return B_NO_INIT;
@ -1090,7 +1091,7 @@ BPathMonitor::StopWatching(const char* path, BMessenger target)
/*static*/ status_t
BPathMonitor::StopWatching(BMessenger target)
BPathMonitor::StopWatching(const BMessenger& target)
{
if (sLocker == NULL)
return B_NO_INIT;