mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 22:34:33 +01:00
Use named casts instead of old-style casts
Change prepared with clang-tidy and google-readability-casting check
This commit is contained in:
committed by
GitHub
parent
cfd94d4fa5
commit
2323cc1596
@@ -50,7 +50,7 @@ static exitcode_t HandleSprite(CommandLineArgEnumerator* argEnumerator)
|
||||
gSpriteMode = 2;
|
||||
Memory::Free(_mode);
|
||||
|
||||
const char** argv = (const char**)argEnumerator->GetArguments() + argEnumerator->GetIndex() - 1;
|
||||
const char** argv = const_cast<const char**>(argEnumerator->GetArguments()) + argEnumerator->GetIndex() - 1;
|
||||
int32_t argc = argEnumerator->GetCount() - argEnumerator->GetIndex() + 1;
|
||||
int32_t result = cmdline_for_sprite(argv, argc);
|
||||
if (result < 0)
|
||||
|
||||
Reference in New Issue
Block a user