summaryrefslogtreecommitdiffstats
path: root/src/deps_log.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2013-04-08 17:20:58 (GMT)
committerEvan Martin <martine@danga.com>2013-04-09 04:04:55 (GMT)
commit0397155218f3d311200ec4e25786028f14c53c6a (patch)
tree7e68d3f5403c4e6979541c2c9922d2248163467c /src/deps_log.h
parent8ec425abe38f468bc4bbb4c95d78fab3b93d2141 (diff)
downloadNinja-0397155218f3d311200ec4e25786028f14c53c6a.zip
Ninja-0397155218f3d311200ec4e25786028f14c53c6a.tar.gz
Ninja-0397155218f3d311200ec4e25786028f14c53c6a.tar.bz2
add a test for the "deps out of date" case
It touched the various remaining XXXes in the code, hooray.
Diffstat (limited to 'src/deps_log.h')
-rw-r--r--src/deps_log.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/deps_log.h b/src/deps_log.h
index e32a6fe..99b006e 100644
--- a/src/deps_log.h
+++ b/src/deps_log.h
@@ -61,7 +61,8 @@ struct State;
/// wins, allowing updates to just be appended to the file. A separate
/// repacking step can run occasionally to remove dead records.
struct DepsLog {
- DepsLog() : dead_record_count_(0) {}
+ DepsLog() : dead_record_count_(0), file_(NULL) {}
+ ~DepsLog();
// Writing (build-time) interface.
bool OpenForWrite(const string& path, string* err);