From 03889098f030471b88b007e03a1c5a5630434521 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Apr 2013 21:29:10 +0300 Subject: Fix code style and other small issues. --- src/utils/process.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils/process.cpp') diff --git a/src/utils/process.cpp b/src/utils/process.cpp index ec9eea548..39f4a5813 100644 --- a/src/utils/process.cpp +++ b/src/utils/process.cpp @@ -55,7 +55,7 @@ int execFileWait(std::string pathName, std::string name A_UNUSED, if (!arg2.empty()) args.append(" ").append(arg2); - if (CreateProcess(pathName.c_str(), static_cast(args.c_str()), + if (CreateProcess(pathName.c_str(), const_cast(args.c_str()), nullptr, nullptr, false, CREATE_DEFAULT_ERROR_MODE, nullptr, nullptr, &siStartupInfo, &piProcessInfo) != false) { @@ -231,7 +231,7 @@ bool execFile(std::string pathName, std::string name, #ifdef WIN32 bool openBrowser(std::string url) { - return static_cast(ShellExecute(nullptr, "open", + return reinterpret_cast(ShellExecute(nullptr, "open", replaceAll(url, " ", "").c_str(), nullptr, nullptr, SW_SHOWNORMAL)) > 32; } -- cgit v1.2.3-70-g09d2