summaryrefslogtreecommitdiffstats
path: root/src/state.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-01-09 21:35:16 (GMT)
committerEvan Martin <martine@danga.com>2012-01-09 21:35:16 (GMT)
commit5aa69297e47109bd5d2cc8db6907af56ff100d6d (patch)
treedece8061a67308ea9da132dfe4f48a48335fa7dd /src/state.h
parenta844fba695d4a62d4ae5bf98c6df3b0677df18b2 (diff)
downloadNinja-5aa69297e47109bd5d2cc8db6907af56ff100d6d.zip
Ninja-5aa69297e47109bd5d2cc8db6907af56ff100d6d.tar.gz
Ninja-5aa69297e47109bd5d2cc8db6907af56ff100d6d.tar.bz2
more stringpiece
Diffstat (limited to 'src/state.h')
-rw-r--r--src/state.h6
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.