summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/state.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.h b/src/state.h
index 38fc74f..e678df9 100644
--- a/src/state.h
+++ b/src/state.h
@@ -35,7 +35,7 @@ struct Pool {
// A depth of 0 is infinite
bool isValid() const { return depth_ >= 0; }
int depth() const { return depth_; }
- string name() const { return name_; }
+ const string& name() const { return name_; }
private:
string name_;