mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
indentation fix
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user