summaryrefslogtreecommitdiff
path: root/zen/shell_execute.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2016-03-16 21:31:24 +0100
committerDaniel Wilhelm <daniel@wili.li>2016-03-16 21:31:24 +0100
commit89621addb4a7c87d2e3f3e7462e3c690cf71de71 (patch)
tree008b5dea7624ee1eeb57ff82c45fdf1afcab3b08 /zen/shell_execute.h
parent7.5 (diff)
downloadFreeFileSync-89621addb4a7c87d2e3f3e7462e3c690cf71de71.tar.gz
FreeFileSync-89621addb4a7c87d2e3f3e7462e3c690cf71de71.tar.bz2
FreeFileSync-89621addb4a7c87d2e3f3e7462e3c690cf71de71.zip
7.6
Diffstat (limited to 'zen/shell_execute.h')
-rw-r--r--zen/shell_execute.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/zen/shell_execute.h b/zen/shell_execute.h
index 2adce179..9b8e00f9 100644
--- a/zen/shell_execute.h
+++ b/zen/shell_execute.h
@@ -4,8 +4,8 @@
// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved *
// **************************************************************************
-#ifndef EXECUTE_HEADER_23482134578134134
-#define EXECUTE_HEADER_23482134578134134
+#ifndef SHELL_EXECUTE_H_23482134578134134
+#define SHELL_EXECUTE_H_23482134578134134
#include "file_error.h"
@@ -94,9 +94,9 @@ void shellExecute(const Zstring& command, ExecutionType type) //throw FileError
if (!argv.empty())
{
filepath = argv[0];
- for (auto iter = argv.begin() + 1; iter != argv.end(); ++iter)
- arguments += (iter != argv.begin() ? L" " : L"") +
- (iter->empty() || std::any_of(iter->begin(), iter->end(), &isWhiteSpace<wchar_t>) ? L"\"" + *iter + L"\"" : *iter);
+ for (auto it = argv.begin() + 1; it != argv.end(); ++it)
+ arguments += (it != argv.begin() ? L" " : L"") +
+ (it->empty() || std::any_of(it->begin(), it->end(), &isWhiteSpace<wchar_t>) ? L"\"" + *it + L"\"" : *it);
}
auto fillExecInfo = [&](SHELLEXECUTEINFO& execInfo)
@@ -130,4 +130,4 @@ void shellExecute(const Zstring& command, ExecutionType type) //throw FileError
}
}
-#endif //EXECUTE_HEADER_23482134578134134
+#endif //SHELL_EXECUTE_H_23482134578134134
bgstack15