Use named casts instead of old-style casts

Change prepared with clang-tidy and google-readability-casting check
This commit is contained in:
Michał Janiszewski authored and GitHub committed 2020-04-22 17:09:29 +02:00
1 parent cfd94d4fa5
commit 2323cc1596
114 files changed
+604 -560

No files matched your search

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