1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Reworked JsonNode constructors to more logical form

This commit is contained in:
Ivan Savenko
2024-02-13 13:18:10 +02:00
parent 54796c7c56
commit 08a27663f9
25 changed files with 125 additions and 161 deletions

View File

@@ -96,7 +96,7 @@ QVariant JsonFromFile(QString filename)
}
else
{
JsonNode node(data.data(), data.size());
JsonNode node(reinterpret_cast<const std::byte*>(data.data()), data.size());
return toVariant(node);
}
}