updated to the new pikotools api: changed the way how child_spaces are created in Space class

This commit is contained in:
2021-05-21 17:17:17 +02:00
parent fe67b5d72a
commit f1b9d1b870
9 changed files with 277 additions and 262 deletions

View File

@@ -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;
}
}
}