diff options
| author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-08-14 16:49:20 +0900 |
|---|---|---|
| committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-08-14 16:49:20 +0900 |
| commit | 5081c71d90a099a96148c39835a93c8c1eff1756 (patch) | |
| tree | e05a79d05330d5ea92b2083fb01600889adabeae /var.h | |
| parent | 180b409602e3174a891568d79d42e6343378f40a (diff) | |
[C++] Stop using shared_ptr<string> in SimpleVar
Diffstat (limited to 'var.h')
| -rw-r--r-- | var.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -63,7 +63,7 @@ class Var : public Evaluable { class SimpleVar : public Var { public: - SimpleVar(shared_ptr<string> v, VarOrigin origin); + SimpleVar(const string& v, VarOrigin origin); virtual const char* Flavor() const { return "simple"; @@ -72,9 +72,6 @@ class SimpleVar : public Var { return origin_; } - virtual shared_ptr<string> Eval(Evaluator*) const override { - return v_; - } virtual void Eval(Evaluator* ev, string* s) const override; virtual void AppendVar(Evaluator* ev, Value* v); @@ -84,7 +81,7 @@ class SimpleVar : public Var { virtual string DebugString() const override; private: - shared_ptr<string> v_; + string v_; VarOrigin origin_; }; |
