mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Convert most remaining C-style casts to C++-style ones (#11867)
This commit is contained in:
committed by
GitHub
parent
7646f1b7e4
commit
9ef8d6da42
@@ -1095,7 +1095,8 @@ void ScriptEngine::LoadSharedStorage()
|
||||
if (File::Exists(path))
|
||||
{
|
||||
auto data = File::ReadAllBytes(path);
|
||||
auto result = DuktapeTryParseJson(_context, std::string_view((const char*)data.data(), data.size()));
|
||||
auto result = DuktapeTryParseJson(
|
||||
_context, std::string_view(reinterpret_cast<const char*>(data.data()), data.size()));
|
||||
if (result)
|
||||
{
|
||||
_sharedStorage = std::move(*result);
|
||||
|
||||
Reference in New Issue
Block a user