mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Change JsonType to enum class (#393)
Change enum JsonType to enum class JsonType
This commit is contained in:
committed by
Alexander Shishkin
parent
6df536bb31
commit
26a222ac62
@@ -21,7 +21,7 @@ JsonDeserializer::JsonDeserializer(const IInstanceResolver * instanceResolver_,
|
||||
void JsonDeserializer::serializeInternal(const std::string & fieldName, boost::logic::tribool & value)
|
||||
{
|
||||
const JsonNode & data = current->operator[](fieldName);
|
||||
if(data.getType() != JsonNode::DATA_BOOL)
|
||||
if(data.getType() != JsonNode::JsonType::DATA_BOOL)
|
||||
value = boost::logic::indeterminate;
|
||||
else
|
||||
value = data.Bool();
|
||||
|
||||
Reference in New Issue
Block a user