diff options
author | Evan Martin <martine@danga.com> | 2012-01-09 21:35:16 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-01-09 21:35:16 (GMT) |
commit | 5aa69297e47109bd5d2cc8db6907af56ff100d6d (patch) | |
tree | dece8061a67308ea9da132dfe4f48a48335fa7dd /src/state.h | |
parent | a844fba695d4a62d4ae5bf98c6df3b0677df18b2 (diff) | |
download | Ninja-5aa69297e47109bd5d2cc8db6907af56ff100d6d.zip Ninja-5aa69297e47109bd5d2cc8db6907af56ff100d6d.tar.gz Ninja-5aa69297e47109bd5d2cc8db6907af56ff100d6d.tar.bz2 |
more stringpiece
Diffstat (limited to 'src/state.h')
-rw-r--r-- | src/state.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state.h b/src/state.h index 72ced9f..845c947 100644 --- a/src/state.h +++ b/src/state.h @@ -44,9 +44,9 @@ struct State { Node* LookupNode(StringPiece path); Node* SpellcheckNode(const string& path); - void AddIn(Edge* edge, const string& path); - void AddOut(Edge* edge, const string& path); - bool AddDefault(const string& path, string* error); + void AddIn(Edge* edge, StringPiece path); + void AddOut(Edge* edge, StringPiece path); + bool AddDefault(StringPiece path, string* error); /// Reset state. Keeps all nodes and edges, but restores them to the /// state where we haven't yet examined the disk for dirty state. |