diff options
author | Nico Weber <nicolasweber@gmx.de> | 2014-01-07 00:15:23 (GMT) |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2014-01-07 00:15:23 (GMT) |
commit | 8e20867e1de55489d47ec65552a2f561126c070b (patch) | |
tree | 87adf94aeeafbd338b1d24a70d5ce01c1cfc122a /src/build_log.h | |
parent | d571e79baaf58032e291325043d7870eb13cb70b (diff) | |
download | Ninja-8e20867e1de55489d47ec65552a2f561126c070b.zip Ninja-8e20867e1de55489d47ec65552a2f561126c070b.tar.gz Ninja-8e20867e1de55489d47ec65552a2f561126c070b.tar.bz2 |
Make BuildLogUser reference constant.
Diffstat (limited to 'src/build_log.h')
-rw-r--r-- | src/build_log.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/build_log.h b/src/build_log.h index fc44854..fe81a85 100644 --- a/src/build_log.h +++ b/src/build_log.h @@ -29,7 +29,7 @@ struct Edge; struct BuildLogUser { /// Return if a given output no longer part of the build manifest. /// This is only called during recompaction and doesn't have to be fast. - virtual bool IsPathDead(StringPiece s) = 0; + virtual bool IsPathDead(StringPiece s) const = 0; }; /// Store a log of every command ran for every build. @@ -43,7 +43,7 @@ struct BuildLog { BuildLog(); ~BuildLog(); - bool OpenForWrite(const string& path, BuildLogUser& user, string* err); + bool OpenForWrite(const string& path, const BuildLogUser& user, string* err); bool RecordCommand(Edge* edge, int start_time, int end_time, TimeStamp restat_mtime = 0); void Close(); @@ -79,7 +79,7 @@ struct BuildLog { bool WriteEntry(FILE* f, const LogEntry& entry); /// Rewrite the known log entries, throwing away old data. - bool Recompact(const string& path, BuildLogUser& user, string* err); + bool Recompact(const string& path, const BuildLogUser& user, string* err); typedef ExternalStringHashMap<LogEntry*>::Type Entries; const Entries& entries() const { return entries_; } |