forked from rosebudai/OpenRCT2-Web
Use named casts instead of old-style casts
Change prepared with clang-tidy and google-readability-casting check
This commit is contained in:
1 parent
cfd94d4fa5
commit
2323cc1596
114 files changed
+604
-560
No files matched your search
@@ -359,7 +359,7 @@ namespace ObjectFactory
|
||||
}
|
||||
|
||||
json_error_t jsonLoadError;
|
||||
auto jRoot = json_loadb((const char*)jsonBytes.data(), jsonBytes.size(), 0, &jsonLoadError);
|
||||
auto jRoot = json_loadb(reinterpret_cast<const char*>(jsonBytes.data()), jsonBytes.size(), 0, &jsonLoadError);
|
||||
if (jRoot == nullptr)
|
||||
{
|
||||
throw JsonException(&jsonLoadError);
|
||||
|
||||
Reference in new issue
Block a user