updated to the new pikotools api: SpaceParser::SetSpace(...) methods have been removed

This commit is contained in:
2021-05-21 01:37:42 +02:00
parent 8bb585d97d
commit 27720afaf2
11 changed files with 13 additions and 39 deletions

View File

@@ -78,9 +78,8 @@ bool GroupInfo::ParseGroups(const std::wstring & str, Groups & groups)
{
groups.Clear();
pt::Space & space = *groups.GetSpace();
conf_parser.SetSpace(space);
if( conf_parser.ParseSpace(str) == pt::SpaceParser::ok )
if( conf_parser.ParseSpace(str, space) == pt::SpaceParser::ok )
{
groups.Reindex();
}

View File

@@ -76,8 +76,7 @@ void ReloadConfigFile(PluginInfo & info, Item & file)
pt::Space space;
pt::SpaceParser parser;
parser.SetSpace(space);
pt::SpaceParser::Status status = parser.ParseSpace(file.item_content.content_raw);
pt::SpaceParser::Status status = parser.ParseSpace(file.item_content.content_raw, space);
if( status == pt::SpaceParser::syntax_error )
{

View File

@@ -166,10 +166,9 @@ bool TicketInfo::ParseTicketConf(long mount_dir_id, const std::wstring & path)
log << log3 << "Ticket: parsing conf file: " << path << logend;
conf_tab[mount_dir_id].file_name = path;
conf_parser.SetSpace(conf_tab[mount_dir_id].conf);
conf_tab[mount_dir_id].conf.clear();
pt::Space & space = conf_tab[mount_dir_id].conf;
return (conf_parser.ParseSpace(config_file.item_content.content_raw) == pt::SpaceParser::ok);
return (conf_parser.ParseSpace(config_file.item_content.content_raw, space) == pt::SpaceParser::ok);
}