summaryrefslogtreecommitdiff
path: root/src/sysExec.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2010-01-12 21:58:24 +0000
committerChristian Pointner <equinox@anytun.org>2010-01-12 21:58:24 +0000
commit7fc4efc7a0216aeb68b0639fb3f4d839b359e250 (patch)
tree8aea8365eb15feb6f33d80b1545c6db950d61c75 /src/sysExec.cpp
parentimproved new SysExec cleanup (diff)
references are better than pointer ;)
Diffstat (limited to 'src/sysExec.cpp')
-rw-r--r--src/sysExec.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sysExec.cpp b/src/sysExec.cpp
index b6f47d8..005e2cc 100644
--- a/src/sysExec.cpp
+++ b/src/sysExec.cpp
@@ -176,12 +176,12 @@ int SysExec::getReturnCode() const
return return_code_;
}
-void SysExec::waitAndDestroy(SysExec** s)
+void SysExec::waitAndDestroy(SysExec*& s)
{
- if(!s && !(*s))
+ if(!s)
return;
- (*s)->waitForScript();
- delete(*s);
- *s = NULL;
+ s->waitForScript();
+ delete(s);
+ s = NULL;
}