X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fstructure%2FSGExpression.cxx;h=162414876eb39d5a7b6229bcd7ee5bb65cfc08e9;hb=7dfb463ba9ac50e890718612cd6b55373b7cc4a8;hp=fa6650300fce9a0bf55f395b91b805ae4f6eb01b;hpb=efec9070e178c9aef98332cb03d967868179ae4a;p=simgear.git diff --git a/simgear/structure/SGExpression.cxx b/simgear/structure/SGExpression.cxx index fa665030..16241487 100644 --- a/simgear/structure/SGExpression.cxx +++ b/simgear/structure/SGExpression.cxx @@ -690,11 +690,10 @@ bool Parser::readChildren(const SGPropertyNode* exp, return true; } -Parser::ParserMap ExpressionParser::_parserTable; - void ExpressionParser::addExpParser(const string& token, exp_parser parsefn) { - _parserTable.insert(std::make_pair(token, parsefn)); + ParserMapSingleton::instance() + ->_parserTable.insert(std::make_pair(token, parsefn)); } Expression* valueParser(const SGPropertyNode* exp, Parser* parser)