diff options
author | Pierre Schweitzer <pierre@reactos.org> | 2015-03-07 13:23:41 (GMT) |
---|---|---|
committer | Pierre Schweitzer <pierre@reactos.org> | 2015-03-07 13:23:41 (GMT) |
commit | 70e7007b327cd26682d398562a8ccda76588f95b (patch) | |
tree | 53801412e46b6d3135a0a8475387776b388221ed /src | |
parent | c406d1c8adfedc1982e2c08ab95d581f65eb65de (diff) | |
download | Ninja-70e7007b327cd26682d398562a8ccda76588f95b.zip Ninja-70e7007b327cd26682d398562a8ccda76588f95b.tar.gz Ninja-70e7007b327cd26682d398562a8ccda76588f95b.tar.bz2 |
Directly pass the string instead of char * to Truncate util function. It will prevent useless conversions.
Diffstat (limited to 'src')
-rw-r--r-- | src/deps_log.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/deps_log.cc b/src/deps_log.cc index bd47ebc..89c6023 100644 --- a/src/deps_log.cc +++ b/src/deps_log.cc @@ -275,7 +275,7 @@ bool DepsLog::Load(const string& path, State* state, string* err) { } fclose(f); - if (!Truncate(path.c_str(), offset, err)) + if (!Truncate(path, offset, err)) return false; // The truncate succeeded; we'll just report the load error as a |