updated to the new pikotools api: snake_case names of methods from SpaceParser
This commit is contained in:
@@ -79,7 +79,7 @@ bool GroupInfo::ParseGroups(const std::wstring & str, Groups & groups)
|
||||
groups.Clear();
|
||||
pt::Space & space = *groups.GetSpace();
|
||||
|
||||
if( conf_parser.ParseSpace(str, space) == pt::SpaceParser::ok )
|
||||
if( conf_parser.parse_space(str, space) == pt::SpaceParser::ok )
|
||||
{
|
||||
groups.Reindex();
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ void ReloadConfigFile(PluginInfo & info, Item & file)
|
||||
pt::Space space;
|
||||
pt::SpaceParser parser;
|
||||
|
||||
pt::SpaceParser::Status status = parser.ParseSpace(file.item_content.content_raw, space);
|
||||
pt::SpaceParser::Status status = parser.parse_space(file.item_content.content_raw, space);
|
||||
|
||||
if( status == pt::SpaceParser::syntax_error )
|
||||
{
|
||||
|
||||
@@ -168,7 +168,7 @@ bool TicketInfo::ParseTicketConf(long mount_dir_id, const std::wstring & path)
|
||||
conf_tab[mount_dir_id].file_name = path;
|
||||
pt::Space & space = conf_tab[mount_dir_id].conf;
|
||||
|
||||
return (conf_parser.ParseSpace(config_file.item_content.content_raw, space) == pt::SpaceParser::ok);
|
||||
return (conf_parser.parse_space(config_file.item_content.content_raw, space) == pt::SpaceParser::ok);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user