]> git.tdb.fi Git - builder.git/blobdiff - source/externaltask.h
Use dynamic_cast to reference when incorrect type is not acceptable
[builder.git] / source / externaltask.h
index 26a6acabe569356e630e109289ed8cb8e80e0546..3de1e4ac139946f26654f1fda57a2dbb65fef2ae 100644 (file)
@@ -24,7 +24,7 @@ public:
                IGNORE        //< Redirect the stream to oblivion
        };
 
-       typedef Msp::Process::Arguments Arguments;
+       using Arguments = Msp::Process::Arguments;
 
 private:
        Arguments argv;
@@ -45,12 +45,12 @@ public:
        name.  If the working directory is not specified, no chdir is done. */
        ExternalTask(const Arguments &, const Msp::FS::Path & = Msp::FS::Path());
 
-       virtual ~ExternalTask();
+       ~ExternalTask();
 
-       virtual std::string get_command() const;
-       virtual void start();
-       virtual Status check();
-       virtual Status wait();
+       std::string get_command() const override;
+       void start() override;
+       Status check() override;
+       Status wait() override;
 private:
        Status do_wait(bool);