diff options
author | Thiago Farina <tfarina@chromium.org> | 2012-06-30 14:40:10 (GMT) |
---|---|---|
committer | Thiago Farina <tfarina@chromium.org> | 2012-06-30 14:40:10 (GMT) |
commit | 904c9610fe66c4f4bd63a07d6f057c8603d24394 (patch) | |
tree | 96af9eca55928821a4d604302485ab0b33798579 /src/graph.cc | |
parent | 358eefbce2f62e8685b6797d395c06f4118b6e05 (diff) | |
download | Ninja-904c9610fe66c4f4bd63a07d6f057c8603d24394.zip Ninja-904c9610fe66c4f4bd63a07d6f057c8603d24394.tar.gz Ninja-904c9610fe66c4f4bd63a07d6f057c8603d24394.tar.bz2 |
Make StringPiece data members private.
Signed-off-by: Thiago Farina <tfarina@chromium.org>
Diffstat (limited to 'src/graph.cc')
-rw-r--r-- | src/graph.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/graph.cc b/src/graph.cc index 56584e3..4bf558a 100644 --- a/src/graph.cc +++ b/src/graph.cc @@ -292,7 +292,8 @@ bool Edge::LoadDepFile(State* state, DiskInterface* disk_interface, // Add all its in-edges. for (vector<StringPiece>::iterator i = depfile.ins_.begin(); i != depfile.ins_.end(); ++i, ++implicit_dep) { - if (!CanonicalizePath(const_cast<char*>(i->str_), &i->len_, err)) + int length = i->len(); + if (!CanonicalizePath(const_cast<char*>(i->str()), &length, err)) return false; Node* node = state->GetNode(*i); |