summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-12 21:29:10 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-12 22:22:59 +0300
commit03889098f030471b88b007e03a1c5a5630434521 (patch)
tree4b60ab4f26e44908bf240254029976eb078fdaa0 /src/utils
parentc565936b3ac5b6e1ab0d5ca30963619c7b725bb6 (diff)
downloadmanaplus-03889098f030471b88b007e03a1c5a5630434521.tar.gz
manaplus-03889098f030471b88b007e03a1c5a5630434521.tar.bz2
manaplus-03889098f030471b88b007e03a1c5a5630434521.tar.xz
manaplus-03889098f030471b88b007e03a1c5a5630434521.zip
Fix code style and other small issues.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/process.cpp4
1 files changed, 2 insertions, 2 deletions
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<char*>(args.c_str()),
+ if (CreateProcess(pathName.c_str(), const_cast<char*>(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<int>(ShellExecute(nullptr, "open",
+ return reinterpret_cast<int>(ShellExecute(nullptr, "open",
replaceAll(url, " ", "").c_str(),
nullptr, nullptr, SW_SHOWNORMAL)) > 32;
}