Turn NULL used as int to 0.
(Excluding chrome/browser/...)
Landing patch for Jacob Mandelson. Original review: http://codereview.chromium.org/195067
BUG=none
TEST=base_unittests & app_unittests
Review URL: http://codereview.chromium.org/267076
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28810 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/process.h b/base/process.h
index fa076b9..7a1bfba2 100644
--- a/base/process.h
+++ b/base/process.h
@@ -21,15 +21,17 @@
#if defined(OS_WIN)
typedef HANDLE ProcessHandle;
typedef DWORD ProcessId;
+const ProcessHandle kNullProcessHandle = NULL;
#elif defined(OS_POSIX)
// On POSIX, our ProcessHandle will just be the PID.
typedef pid_t ProcessHandle;
typedef pid_t ProcessId;
+const ProcessHandle kNullProcessHandle = 0;
#endif
class Process {
public:
- Process() : process_(0), last_working_set_size_(0) {}
+ Process() : process_(kNullProcessHandle), last_working_set_size_(0) {}
explicit Process(ProcessHandle handle) :
process_(handle), last_working_set_size_(0) {}