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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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