Tracker: style fixes to PendingNodeMonitorCache

This commit is contained in:
John Scipione
2014-06-20 21:02:14 -04:00
parent 8c968207bb
commit 3dca186447
2 changed files with 11 additions and 10 deletions
+6 -4
View File
@@ -44,9 +44,10 @@ const bigtime_t kDelayedNodeMonitorLifetime = 10000000;
PendingNodeMonitorEntry::PendingNodeMonitorEntry(const node_ref* node, PendingNodeMonitorEntry::PendingNodeMonitorEntry(const node_ref* node,
const BMessage* nodeMonitor) const BMessage* nodeMonitor)
: fExpiresAfter(system_time() + kDelayedNodeMonitorLifetime), :
fNodeMonitor(*nodeMonitor), fExpiresAfter(system_time() + kDelayedNodeMonitorLifetime),
fNode(*node) fNodeMonitor(*nodeMonitor),
fNode(*node)
{ {
} }
@@ -73,7 +74,8 @@ PendingNodeMonitorEntry::TooOld(bigtime_t now) const
PendingNodeMonitorCache::PendingNodeMonitorCache() PendingNodeMonitorCache::PendingNodeMonitorCache()
: fList(10, true) :
fList(10, true)
{ {
} }
+5 -6
View File
@@ -39,14 +39,13 @@ All rights reserved.
// The respective node montior messages are stored in a list and applied // 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 // later, when their target shows up. They get nuked when they become too
// old. // old.
#ifndef __PENDING_NODEMONITOR_CACHE_H__ #ifndef _PENDING_NODE_MONITOR_CACHE_H
#define __PENDING_NODEMONITOR_CACHE_H__ #define _PENDING_NODE_MONITOR_CACHE_H
#include <Message.h> #include <Message.h>
#include <Node.h> #include <Node.h>
#include <ObjectList.h>
#include "ObjectList.h"
namespace BPrivate { namespace BPrivate {
@@ -67,7 +66,6 @@ private:
node_ref fNode; node_ref fNode;
}; };
class PendingNodeMonitorCache { class PendingNodeMonitorCache {
public: public:
PendingNodeMonitorCache(); PendingNodeMonitorCache();
@@ -87,4 +85,5 @@ private:
using namespace BPrivate; using namespace BPrivate;
#endif // __PENDING_NODEMONITOR_CACHE_H__
#endif // _PENDING_NODE_MONITOR_CACHE_H