1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 15:24:30 +01:00

Use named casts on openrct2/(util|windows|scenario|title) (#11146)

This commit is contained in:
Tulio Leao
2020-04-17 14:45:19 -03:00
committed by GitHub
parent fd69886350
commit 116bcb5ccb
8 changed files with 69 additions and 67 deletions

View File

@@ -87,7 +87,7 @@ void* Intent::GetPointerExtra(uint32_t key) const
auto data = _Data.at(key);
openrct2_assert(data.type == IntentData::DT_POINTER, "Actual type doesn't match requested type");
return (void*)data.pointerVal;
return static_cast<void*>(data.pointerVal);
}
uint32_t Intent::GetUIntExtra(uint32_t key) const