summaryrefslogtreecommitdiff
path: root/src/utils/process.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-01 21:35:49 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-01 22:40:36 +0300
commitfc854786ed73fe768d6a3ca22c02f7013560a930 (patch)
tree3a12f555d194679957559760567ff8eb701b494b /src/utils/process.cpp
parent09d74d9273cca445b7019edacaff53452a1eee3c (diff)
downloadplus-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.gz
plus-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.bz2
plus-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.xz
plus-fc854786ed73fe768d6a3ca22c02f7013560a930.zip
Fix code style.
Diffstat (limited to 'src/utils/process.cpp')
-rw-r--r--src/utils/process.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp
index b02874b0d..3a742b313 100644
--- a/src/utils/process.cpp
+++ b/src/utils/process.cpp
@@ -86,9 +86,10 @@ bool execFile(std::string pathName, std::string name A_UNUSED,
if (!arg2.empty())
args += " " + arg2;
- bool res = CreateProcess(pathName.c_str(), (char*)args.c_str(), nullptr,
- nullptr, false, CREATE_DEFAULT_ERROR_MODE, nullptr, nullptr,
- &siStartupInfo, &piProcessInfo);
+ bool res = CreateProcess(pathName.c_str(), const_cast<char*>(
+ args.c_str()), nullptr, nullptr, false,
+ CREATE_DEFAULT_ERROR_MODE, nullptr, nullptr, &siStartupInfo,
+ &piProcessInfo);
CloseHandle(piProcessInfo.hProcess);
CloseHandle(piProcessInfo.hThread);