Tracker: style fixes to PendingNodeMonitorCache

This commit is contained in:
John Scipione 2014-06-20 18:57:46 -04:00
parent 8c968207bb
commit 3dca186447
2 changed files with 11 additions and 10 deletions

View File

@ -44,9 +44,10 @@ const bigtime_t kDelayedNodeMonitorLifetime = 10000000;
PendingNodeMonitorEntry::PendingNodeMonitorEntry(const node_ref* node,
const BMessage* nodeMonitor)
: fExpiresAfter(system_time() + kDelayedNodeMonitorLifetime),
fNodeMonitor(*nodeMonitor),
fNode(*node)
:
fExpiresAfter(system_time() + kDelayedNodeMonitorLifetime),
fNodeMonitor(*nodeMonitor),
fNode(*node)
{
}
@ -73,7 +74,8 @@ PendingNodeMonitorEntry::TooOld(bigtime_t now) const
PendingNodeMonitorCache::PendingNodeMonitorCache()
: fList(10, true)
:
fList(10, true)
{
}

View File

@ -39,14 +39,13 @@ All rights reserved.
// The respective node montior messages are stored in a list and applied
// later, when their target shows up. They get nuked when they become too
// old.
#ifndef __PENDING_NODEMONITOR_CACHE_H__
#define __PENDING_NODEMONITOR_CACHE_H__
#ifndef _PENDING_NODE_MONITOR_CACHE_H
#define _PENDING_NODE_MONITOR_CACHE_H
#include <Message.h>
#include <Node.h>
#include "ObjectList.h"
#include <ObjectList.h>
namespace BPrivate {
@ -67,7 +66,6 @@ private:
node_ref fNode;
};
class PendingNodeMonitorCache {
public:
PendingNodeMonitorCache();
@ -87,4 +85,5 @@ private:
using namespace BPrivate;
#endif // __PENDING_NODEMONITOR_CACHE_H__
#endif // _PENDING_NODE_MONITOR_CACHE_H