1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

Use named casts on openrct2-ui root folder (#11137)

This commit is contained in:
Tulio Leao
2020-04-18 07:15:07 -03:00
committed by GitHub
parent 6f984a0a77
commit b948d65c33
5 changed files with 26 additions and 23 deletions

View File

@@ -65,8 +65,8 @@ namespace OpenRCT2::Ui
void* processHandle = dlopen(nullptr, RTLD_NOW);
if (processHandle != nullptr)
{
dummy* p = ((dummy*)processHandle)->ptr;
lmap* pl = (lmap*)p->ptr;
dummy* p = (static_cast<dummy*>(processHandle))->ptr;
lmap* pl = reinterpret_cast<lmap*>(p->ptr);
while (pl != nullptr)
{
if (strstr(pl->path, "gameoverlayrenderer.so") != nullptr)
@@ -357,7 +357,7 @@ namespace OpenRCT2::Ui
}
else if (isalpha(c))
{
filtersb << '[' << (char)tolower(c) << (char)toupper(c) << ']';
filtersb << '[' << static_cast<char>(tolower(c)) << static_cast<char>(toupper(c)) << ']';
}
else
{