case Property::MAP:
{
Property::Map* map = child.GetMap();
- if( map )
+ for( Property::Map::SizeType i=0; i < map->Count(); ++i )
{
- for( Property::Map::SizeType i=0; i < map->Count(); ++i )
- {
- Property::Value& child = map->GetValue(i);
- ConvertChildValue(mappingRoot, keyStack, child);
- }
+ Property::Value& child = map->GetValue(i);
+ ConvertChildValue(mappingRoot, keyStack, child);
}
break;
}
case Property::ARRAY:
{
Property::Array* array = child.GetArray();
- if( array )
+ for( Property::Array::SizeType i=0; i < array->Count(); ++i )
{
- for( Property::Array::SizeType i=0; i < array->Count(); ++i )
- {
- Property::Value& child = array->GetElementAt(i);
- ConvertChildValue(mappingRoot, keyStack, child);
- }
+ Property::Value& child = array->GetElementAt(i);
+ ConvertChildValue(mappingRoot, keyStack, child);
}
break;
}
if( parser.Parse( property ) )
{
const TreeNode* const node = parser.GetRoot();
- if( node )
- {
- CreatePropertyMap( node, map );
- }
+
+ CreatePropertyMap( node, map );
}
}