PathMonitor.cpp: some style cleanup
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2008, Haiku Inc. All Rights Reserved.
|
* Copyright 2007-2013, Haiku Inc. All Rights Reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -10,7 +10,12 @@
|
|||||||
|
|
||||||
#include <PathMonitor.h>
|
#include <PathMonitor.h>
|
||||||
|
|
||||||
#include <ObjectList.h>
|
#include <pthread.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include <map>
|
||||||
|
#include <new>
|
||||||
|
#include <set>
|
||||||
|
|
||||||
#include <Autolock.h>
|
#include <Autolock.h>
|
||||||
#include <Directory.h>
|
#include <Directory.h>
|
||||||
@@ -21,10 +26,8 @@
|
|||||||
#include <Path.h>
|
#include <Path.h>
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
|
|
||||||
#include <map>
|
#include <ObjectList.h>
|
||||||
#include <new>
|
|
||||||
#include <set>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#undef TRACE
|
#undef TRACE
|
||||||
//#define TRACE_PATH_MONITOR
|
//#define TRACE_PATH_MONITOR
|
||||||
@@ -34,10 +37,12 @@
|
|||||||
# define TRACE(x...) ;
|
# define TRACE(x...) ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
using namespace BPrivate;
|
using namespace BPrivate;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using std::nothrow; // TODO: Remove this line if the above line is enough.
|
using std::nothrow; // TODO: Remove this line if the above line is enough.
|
||||||
|
|
||||||
|
|
||||||
// TODO: Use optimizations where stuff is already known to avoid iterating
|
// TODO: Use optimizations where stuff is already known to avoid iterating
|
||||||
// the watched directory and files set too often.
|
// the watched directory and files set too often.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user