Commit d96458ce authored by Dimitri van Heesch's avatar Dimitri van Heesch

Add validation of internal consistency to html entity mapper

parent e236824a
......@@ -326,6 +326,7 @@ HtmlEntityMapper::HtmlEntityMapper()
{
m_name2sym->insert(g_htmlEntities[i].item,new int(g_htmlEntities[i].symb));
}
validate();
}
HtmlEntityMapper::~HtmlEntityMapper()
......
......@@ -36,8 +36,8 @@ class HtmlEntityMapper
const char *rtf(DocSymbol::SymType symb) const;
const DocSymbol::PerlSymb *perl(DocSymbol::SymType symb) const;
void writeXMLSchema(FTextStream &t);
void validate();
private:
void validate();
HtmlEntityMapper();
~HtmlEntityMapper();
static HtmlEntityMapper *s_instance;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment