diff options
author | Evan Martin <martine@danga.com> | 2012-04-05 00:26:50 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-04-05 00:26:50 (GMT) |
commit | f355f64f649a38cb7fec697d58c0f4b79a577ed7 (patch) | |
tree | baeed2988d82f67397bc4551434cb805fd7025c6 /src/build_log.h | |
parent | 10dd40066e853a016b47b25e53c4ff489b7ebefb (diff) | |
download | Ninja-f355f64f649a38cb7fec697d58c0f4b79a577ed7.zip Ninja-f355f64f649a38cb7fec697d58c0f4b79a577ed7.tar.gz Ninja-f355f64f649a38cb7fec697d58c0f4b79a577ed7.tar.bz2 |
Make |log_| variable private to BuildLog.
This fix the TODO in build_log.h file.
Signed-off-by: Thiago Farina <tfarina@chromium.org>
Diffstat (limited to 'src/build_log.h')
-rw-r--r-- | src/build_log.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/build_log.h b/src/build_log.h index 040609d..da8e726 100644 --- a/src/build_log.h +++ b/src/build_log.h @@ -71,10 +71,11 @@ struct BuildLog { /// Rewrite the known log entries, throwing away old data. bool Recompact(const string& path, string* err); - // TODO: make these private. typedef ExternalStringHashMap<LogEntry*>::Type Log; + const Log& log() const { return log_; } + + private: Log log_; -private: FILE* log_file_; BuildConfig* config_; bool needs_recompaction_; |