updated to the new pikotools api: changed the way how child_spaces are created in Space class
This commit is contained in:
@@ -123,14 +123,15 @@ bool TimeZones::Empty() const
|
||||
|
||||
void TimeZones::ParseZones()
|
||||
{
|
||||
if( temp_space.child_spaces )
|
||||
pt::Space::TableType * child_table = temp_space.find_child_space_table();
|
||||
|
||||
if( child_table )
|
||||
{
|
||||
for(size_t i=0 ; i<temp_space.child_spaces->size() ; ++i)
|
||||
for(pt::Space * zone : *child_table)
|
||||
{
|
||||
pt::Space & zone = *((*temp_space.child_spaces)[i]);
|
||||
temp_zone.Clear();
|
||||
|
||||
if( temp_zone.SetTz(zone) )
|
||||
if( temp_zone.SetTz(*zone) )
|
||||
{
|
||||
if( !HasZone(temp_zone.id) )
|
||||
{
|
||||
@@ -154,7 +155,7 @@ void TimeZones::ParseZones()
|
||||
else
|
||||
{
|
||||
log << log1 << "System: problem with reading time zone info from time zone: "
|
||||
<< zone.name << " (skipping) " << logend;
|
||||
<< zone->get_child_space_name() << " (skipping) " << logend;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user