Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

dirstate.cpp: use 0 instead of NULL

since this is now C++, let's use 0 instead of legacy NULL

Changeset 298fecb42207

Parent 3425c24b4fa2

by Adrian Buehlmann

Changes to one file · Browse files at 298fecb42207 Showing diff from parent 3425c24b4fa2 Diff from another changeset...

 
116
117
118
119
 
120
121
122
 
123
124
125
 
154
155
156
157
 
158
159
160
 
163
164
165
166
 
167
168
169
 
116
117
118
 
119
120
121
 
122
123
124
125
 
154
155
156
 
157
158
159
160
 
163
164
165
 
166
167
168
169
@@ -116,10 +116,10 @@
 std::auto_ptr<dirstate> dirstate::read(const char *path)  {   direntry e; - FILE *f = NULL; + FILE *f = 0;     f = fopen(path, "rb"); - if (f == NULL) + if (!f)   return std::auto_ptr<dirstate>(0);     std::auto_ptr<dirstate> pd(new dirstate()); @@ -154,7 +154,7 @@
 }     -dirstatecache* _cache = NULL; +dirstatecache* _cache = 0;  const dirstate* dirstate_get(const char* hgroot)  {   std::string path = hgroot; @@ -163,7 +163,7 @@
  struct _stat stat;     if (0 != lstat(path.c_str(), &stat)) - return NULL; + return 0;     dirstatecache* head = _cache;   while (head)