forked from rosebudai/OpenRCT2-Web
Convert most remaining C-style casts to C++-style ones (#11867)
This commit is contained in:
1 parent
7646f1b7e4
commit
9ef8d6da42
43 files changed
+126
-107
No files matched your search
@@ -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