Skip to content

Commit

Permalink
Add validation of internal consistency to html entity mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Feb 15, 2014
1 parent e236824 commit d96458c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/htmlentity.cpp
Expand Up @@ -326,6 +326,7 @@ HtmlEntityMapper::HtmlEntityMapper()
{
m_name2sym->insert(g_htmlEntities[i].item,new int(g_htmlEntities[i].symb));
}
validate();
}

HtmlEntityMapper::~HtmlEntityMapper()
Expand Down
2 changes: 1 addition & 1 deletion src/htmlentity.h
Expand Up @@ -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;
Expand Down

0 comments on commit d96458c

Please sign in to comment.