1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 15:24:30 +01:00

Use named casts on openrct2-win (#11138)

This commit is contained in:
Tulio Leao
2020-04-18 07:13:50 -03:00
committed by GitHub
parent b4a763c751
commit 6f984a0a77

View File

@@ -48,7 +48,7 @@ int wmain(int argc, wchar_t** argvW, [[maybe_unused]] wchar_t* envp)
static char** GetCommandLineArgs(int argc, wchar_t** argvW)
{
// Allocate UTF-8 strings
auto argv = (char**)malloc(argc * sizeof(char*));
auto argv = static_cast<char**>(malloc(argc * sizeof(char*)));
if (argv != nullptr)
{
// Convert to UTF-8