diff options
Diffstat (limited to 'zen/shell_execute.h')
-rwxr-xr-x | zen/shell_execute.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zen/shell_execute.h b/zen/shell_execute.h index 18e4854b..43bede61 100755 --- a/zen/shell_execute.h +++ b/zen/shell_execute.h @@ -17,10 +17,10 @@ namespace zen { //launch commandline and report errors via popup dialog //Windows: COM needs to be initialized before calling this function! -enum ExecutionType +enum class ExecutionType { - EXEC_TYPE_SYNC, - EXEC_TYPE_ASYNC + SYNC, + ASYNC }; namespace @@ -36,7 +36,7 @@ void shellExecute(const Zstring& command, ExecutionType type) //throw FileError - uses a zero-sized dummy window as a hack to keep focus which leaves a useless empty icon in ALT-TAB list in Windows */ - if (type == EXEC_TYPE_SYNC) + if (type == ExecutionType::SYNC) { //Posix ::system() - execute a shell command const int rv = ::system(command.c_str()); //do NOT use std::system as its documentation says nothing about "WEXITSTATUS(rv)", ect... |