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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user