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.cc | |
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.cc')
-rw-r--r-- | src/build_log.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/build_log.cc b/src/build_log.cc index c041514..3f24c16 100644 --- a/src/build_log.cc +++ b/src/build_log.cc @@ -108,7 +108,7 @@ BuildLog::~BuildLog() { Close(); } -bool BuildLog::OpenForWrite(const string& path, BuildLogUser& user, +bool BuildLog::OpenForWrite(const string& path, const BuildLogUser& user, string* err) { if (needs_recompaction_) { if (!Recompact(path, user, err)) @@ -351,7 +351,8 @@ bool BuildLog::WriteEntry(FILE* f, const LogEntry& entry) { entry.output.c_str(), entry.command_hash) > 0; } -bool BuildLog::Recompact(const string& path, BuildLogUser& user, string* err) { +bool BuildLog::Recompact(const string& path, const BuildLogUser& user, + string* err) { METRIC_RECORD(".ninja_log recompact"); printf("Recompacting log...\n"); |