aboutsummaryrefslogtreecommitdiff
path: root/exec.cc
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-08-14 17:19:34 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-08-14 17:22:25 +0900
commitfb415ad2b0835e251b4d5cb5a8397b80c41525d6 (patch)
tree04957b34c110e69ac1dc3b3f21443a39e0bb5182 /exec.cc
parent5081c71d90a099a96148c39835a93c8c1eff1756 (diff)
downloadkati-fb415ad2b0835e251b4d5cb5a8397b80c41525d6.tar.gz
[C++] Remove all shared_ptr<string>
Diffstat (limited to 'exec.cc')
-rw-r--r--exec.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/exec.cc b/exec.cc
index 8695f6f..29008a1 100644
--- a/exec.cc
+++ b/exec.cc
@@ -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