Permalink
Browse files

Add validation of internal consistency to html entity mapper

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Feb 15, 2014
1 parent e236824 commit d96458ce99b92590a8fec0aba46c67b6816fa632
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/htmlentity.cpp
  2. +1 −1 src/htmlentity.h
@@ -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;

0 comments on commit d96458c

Please sign in to comment.