1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

indentation fix

This commit is contained in:
Henning Koehler
2017-09-16 10:30:57 +12:00
parent ee46862784
commit 20172dba7c

View File

@ -237,24 +237,24 @@ bool JsonNode::isCompact() const
{ {
switch(type) switch(type)
{ {
case JsonType::DATA_VECTOR: case JsonType::DATA_VECTOR:
for(JsonNode & elem : *data.Vector) for(JsonNode & elem : *data.Vector)
{ {
if(!elem.isCompact()) if(!elem.isCompact())
return false; return false;
} }
return true; return true;
case JsonType::DATA_STRUCT: case JsonType::DATA_STRUCT:
{ {
int propertyCount = data.Struct->size(); int propertyCount = data.Struct->size();
if(propertyCount == 0) if(propertyCount == 0)
return true; return true;
else if(propertyCount == 1) else if(propertyCount == 1)
return data.Struct->begin()->second.isCompact(); return data.Struct->begin()->second.isCompact();
} }
return false; return false;
default: default:
return true; return true;
} }
} }