summaryrefslogtreecommitdiffstats
path: root/src/build_log.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-04-05 00:26:50 (GMT)
committerEvan Martin <martine@danga.com>2012-04-05 00:26:50 (GMT)
commitf355f64f649a38cb7fec697d58c0f4b79a577ed7 (patch)
treebaeed2988d82f67397bc4551434cb805fd7025c6 /src/build_log.h
parent10dd40066e853a016b47b25e53c4ff489b7ebefb (diff)
downloadNinja-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.h5
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_;