diff options
author | Morgan Deters <mdeters@gmail.com> | 2012-02-22 15:30:51 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2012-02-22 15:30:51 +0000 |
commit | 4aecb261e60bf3e2de0d6a59af8d3a55b608c273 (patch) | |
tree | ac707035fb32f047a690a1d12e4aba0ada5b8d7e /src/expr/command.cpp | |
parent | 5113a97006ab1ed6de2eec471b9ad624d14e8d27 (diff) |
Fixes to documentation / fixes for MacOS
Diffstat (limited to 'src/expr/command.cpp')
-rw-r--r-- | src/expr/command.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/expr/command.cpp b/src/expr/command.cpp index ba29b6c34..8d089901b 100644 --- a/src/expr/command.cpp +++ b/src/expr/command.cpp @@ -74,6 +74,10 @@ ostream& operator<<(ostream& out, const CommandStatus* s) throw() { Command::Command() throw() : d_commandStatus(NULL) { } +Command::Command(const Command& cmd) { + d_commandStatus = (cmd.d_commandStatus == NULL) ? NULL : &cmd.d_commandStatus->clone(); +} + Command::~Command() throw() { if(d_commandStatus != NULL && d_commandStatus != CommandSuccess::instance()) { delete d_commandStatus; |