X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexternaltask.h;h=9b9bc438867ce5884241249dedbe6b511af87ed8;hb=d1f9551e05c9d341149eb490e05b1465d3d6b711;hp=80796139da36d9bf27b62f731d3dbc5b3aea3233;hpb=bde362811368647047f3ca13bdec596f092ecffe;p=builder.git diff --git a/source/externaltask.h b/source/externaltask.h index 8079613..9b9bc43 100644 --- a/source/externaltask.h +++ b/source/externaltask.h @@ -24,19 +24,19 @@ public: IGNORE //< Redirect the stream to oblivion }; - typedef Msp::Process::Arguments Arguments; + using Arguments = Msp::Process::Arguments; private: Arguments argv; Msp::FS::Path work_dir; - Msp::Process *process; - int exit_code; - StreamAction stdin_action; + Msp::Process *process = 0; + int exit_code = -1; + StreamAction stdin_action = PASSTHROUGH; Msp::FS::Path stdin_file; - StreamAction stdout_action; + StreamAction stdout_action = PASSTHROUGH; Msp::FS::Path stdout_file; - StreamAction stderr_action; - Msp::IO::Pipe *capture_pipe; + StreamAction stderr_action = PASSTHROUGH; + Msp::IO::Pipe *capture_pipe = 0; std::string output; public: