diff options
author | Thiago Farina <tfarina@chromium.org> | 2012-05-06 20:37:46 (GMT) |
---|---|---|
committer | Thiago Farina <tfarina@chromium.org> | 2012-05-06 20:38:11 (GMT) |
commit | dea535b93dfebd86f6c01b617da0e7eab6633202 (patch) | |
tree | 48dfafe3a399753360a6922af347c14dad1f748c | |
parent | 054ff2b69b3d9e317b2ab90dea0695c786efb55f (diff) | |
download | Ninja-dea535b93dfebd86f6c01b617da0e7eab6633202.zip Ninja-dea535b93dfebd86f6c01b617da0e7eab6633202.tar.gz Ninja-dea535b93dfebd86f6c01b617da0e7eab6633202.tar.bz2 |
No need to convert log_path to c-string. Two places.
Signed-off-by: Thiago Farina <tfarina@chromium.org>
-rw-r--r-- | src/ninja.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ninja.cc b/src/ninja.cc index ac862e9..667aaae 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -739,13 +739,12 @@ reload: log_path = build_dir + "/" + kLogPath; } - if (!build_log.Load(log_path.c_str(), &err)) { - Error("loading build log %s: %s", - log_path.c_str(), err.c_str()); + if (!build_log.Load(log_path, &err)) { + Error("loading build log %s: %s", log_path.c_str(), err.c_str()); return 1; } - if (!build_log.OpenForWrite(log_path.c_str(), &err)) { + if (!build_log.OpenForWrite(log_path, &err)) { Error("opening build log: %s", err.c_str()); return 1; } |