]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/process.cpp
Use default member initializers and constructor delegation
[libs/core.git] / source / core / process.cpp
index dfbea341310d19a039e4924ee122c1c0fd054f9d..92475d4286782642dac9da3e989544947741f282 100644 (file)
@@ -10,26 +10,11 @@ Process *Process::_self = 0;
 
 Process::Process(const Private &p):
        priv(new Private(p))
-{
-       init();
-}
+{ }
 
 Process::Process():
        priv(new Private)
-{
-       init();
-}
-
-void Process::init()
-{
-       redirect = false;
-       cin = 0;
-       cout = 0;
-       cerr = 0;
-       running = false;
-       finished = false;
-       exit_code = 0;
-}
+{ }
 
 Process &Process::self()
 {