From 6f984a0a77fe565c39ed3a67ae7c0ba04d8e4614 Mon Sep 17 00:00:00 2001 From: Tulio Leao Date: Sat, 18 Apr 2020 07:13:50 -0300 Subject: [PATCH] Use named casts on openrct2-win (#11138) --- src/openrct2-win/openrct2-win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-win/openrct2-win.cpp b/src/openrct2-win/openrct2-win.cpp index 166d875b9d..482d00f164 100644 --- a/src/openrct2-win/openrct2-win.cpp +++ b/src/openrct2-win/openrct2-win.cpp @@ -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(malloc(argc * sizeof(char*))); if (argv != nullptr) { // Convert to UTF-8