]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/process.cpp
Add move semantics to Variant
[libs/core.git] / source / core / process.cpp
index 92475d4286782642dac9da3e989544947741f282..4c5ed4651164615fc67b1d8a7c7523856876a233 100644 (file)
@@ -1,4 +1,5 @@
 #include <msp/io/console.h>
+#include "except.h"
 #include "process.h"
 #include "process_private.h"
 
@@ -6,7 +7,7 @@ using namespace std;
 
 namespace Msp {
 
-Process *Process::_self = 0;
+Process *Process::_self = nullptr;
 
 Process::Process(const Private &p):
        priv(new Private(p))
@@ -78,7 +79,7 @@ void Process::execute(const FS::Path &command, const Arguments &args)
 unsigned Process::get_exit_code() const
 {
        if(!finished)
-               throw logic_error("not finished");
+               throw invalid_state("not finished");
        return exit_code;
 }