Convert most remaining C-style casts to C++-style ones (#11867)

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2020-06-07 23:18:11 +02:00
1 parent 7646f1b7e4
commit 9ef8d6da42
43 files changed
+126 -107

No files matched your search

+2 -1
View File
@@ -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);