From b3851916ce08424fb5a28a57d70945e805d8d931 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 8 Jun 2012 10:30:05 +0300 Subject: [PATCH] Allow omitting workdir in ExternalTask constructor call --- source/builder.cpp | 2 +- source/externaltask.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/builder.cpp b/source/builder.cpp index 2591fc3..0cbcb22 100644 --- a/source/builder.cpp +++ b/source/builder.cpp @@ -321,7 +321,7 @@ string Builder::run_pkgconfig(const string &pkg, const string &what) if(verbose>=4) IO::print("Running %s\n", join(argv.begin(), argv.end())); - ExternalTask task(argv, FS::Path()); + ExternalTask task(argv); task.set_stdout(ExternalTask::CAPTURE); task.set_stderr(ExternalTask::IGNORE); task.start(); diff --git a/source/externaltask.h b/source/externaltask.h index c9bc823..1b330ff 100644 --- a/source/externaltask.h +++ b/source/externaltask.h @@ -30,7 +30,7 @@ private: std::string output; public: - ExternalTask(const Arguments &, const Msp::FS::Path &); + ExternalTask(const Arguments &, const Msp::FS::Path & = Msp::FS::Path()); virtual ~ExternalTask(); virtual std::string get_command() const; -- 2.45.2