diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-02-15 15:54:50 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-02-15 15:54:50 (GMT) |
commit | d96458ce99b92590a8fec0aba46c67b6816fa632 (patch) | |
tree | 2cd1448d03dc50ee48f10d5c6d27e5afd3298d80 | |
parent | e236824a291b77d500bdd2b91a4ea1ad29c65b5c (diff) | |
download | Doxygen-d96458ce99b92590a8fec0aba46c67b6816fa632.zip Doxygen-d96458ce99b92590a8fec0aba46c67b6816fa632.tar.gz Doxygen-d96458ce99b92590a8fec0aba46c67b6816fa632.tar.bz2 |
Add validation of internal consistency to html entity mapper
-rw-r--r-- | src/htmlentity.cpp | 1 | ||||
-rw-r--r-- | src/htmlentity.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/htmlentity.cpp b/src/htmlentity.cpp index c7ff1da..9f83991 100644 --- a/src/htmlentity.cpp +++ b/src/htmlentity.cpp @@ -326,6 +326,7 @@ HtmlEntityMapper::HtmlEntityMapper() { m_name2sym->insert(g_htmlEntities[i].item,new int(g_htmlEntities[i].symb)); } + validate(); } HtmlEntityMapper::~HtmlEntityMapper() diff --git a/src/htmlentity.h b/src/htmlentity.h index 9cebeb3..d3b268c 100644 --- a/src/htmlentity.h +++ b/src/htmlentity.h @@ -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; |