updated to the new pikotools api: SpaceParser::SetSpace(...) methods have been removed
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
@@ -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 )
|
||||
{
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user