summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Schweitzer <pierre@reactos.org>2015-03-07 13:23:41 (GMT)
committerPierre Schweitzer <pierre@reactos.org>2015-03-07 13:23:41 (GMT)
commit70e7007b327cd26682d398562a8ccda76588f95b (patch)
tree53801412e46b6d3135a0a8475387776b388221ed
parentc406d1c8adfedc1982e2c08ab95d581f65eb65de (diff)
downloadNinja-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.
-rw-r--r--src/deps_log.cc2
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