diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-23 21:55:52 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-23 21:55:52 +0900 |
| commit | fa9f3fb5a3c8912a0a6880ffba9c72f4424ea044 (patch) | |
| tree | deb0b47b085a3a689bf386409734bfd3f72f57d2 /src/TimeBasedCommand.cc | |
| parent | bb5b7eeedb3ce7396007818cbab4f5f5660997a5 (diff) | |
Wrap Command object in std::unique_ptr
Diffstat (limited to 'src/TimeBasedCommand.cc')
| -rw-r--r-- | src/TimeBasedCommand.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/TimeBasedCommand.cc b/src/TimeBasedCommand.cc index 50d1ff03..f077baed 100644 --- a/src/TimeBasedCommand.cc +++ b/src/TimeBasedCommand.cc @@ -64,9 +64,9 @@ bool TimeBasedCommand::execute() return true; } if(routineCommand_) { - e_->addRoutineCommand(this); + e_->addRoutineCommand(std::unique_ptr<Command>(this)); } else { - e_->addCommand(this); + e_->addCommand(std::unique_ptr<Command>(this)); } return false; } |
