diff options
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-08-14 17:19:34 +0900 |
---|---|---|
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-08-14 17:22:25 +0900 |
commit | fb415ad2b0835e251b4d5cb5a8397b80c41525d6 (patch) | |
tree | 04957b34c110e69ac1dc3b3f21443a39e0bb5182 /exec.cc | |
parent | 5081c71d90a099a96148c39835a93c8c1eff1756 (diff) | |
download | kati-fb415ad2b0835e251b4d5cb5a8397b80c41525d6.tar.gz |
[C++] Remove all shared_ptr<string>
Diffstat (limited to 'exec.cc')
-rw-r--r-- | exec.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -99,12 +99,12 @@ class Executor { ce_.Eval(n, &commands); for (Command* command : commands) { if (command->echo) { - printf("%s\n", command->cmd->c_str()); + printf("%s\n", command->cmd.c_str()); fflush(stdout); } if (!g_is_dry_run) { string out; - int result = RunCommand(*shell_, command->cmd->c_str(), + int result = RunCommand(shell_, command->cmd.c_str(), RedirectStderr::STDOUT, &out); printf("%s", out.c_str()); @@ -129,7 +129,7 @@ class Executor { private: CommandEvaluator ce_; unordered_map<Symbol, double> done_; - shared_ptr<string> shell_; + string shell_; }; } // namespace |