Skip to content

Commit a194258

Browse files
committed
Incorrect number of doxygen htmlentities
The variable `g_numberHtmlMappedCmds` had a wrong value (should have been 18) but seen its usage it is not necessary at all and just error prone and has been removed.
1 parent fb8dfdf commit a194258

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/htmlentity.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,6 @@ static const std::vector<HtmlEntityInfo> g_htmlEntities
322322
/* 18 */ { SYM(Quest), "?", "&quest;", "?", "?", "?", "?", "?", { "?", HtmlEntityMapper::Perl_char }}
323323
};
324324

325-
//! Number of doxygen commands mapped as if it were HTML entities
326-
static const int g_numberHtmlMappedCmds = 16;
327-
328-
329325
HtmlEntityMapper::HtmlEntityMapper()
330326
{
331327
for (const auto &entity : g_htmlEntities)
@@ -467,7 +463,7 @@ HtmlEntityMapper::SymType HtmlEntityMapper::name2sym(const QCString &symName) co
467463

468464
void HtmlEntityMapper::writeXMLSchema(TextStream &t)
469465
{
470-
for (size_t i=0;i<g_htmlEntities.size() - g_numberHtmlMappedCmds;i++)
466+
for (size_t i=0;i<g_htmlEntities.size();i++)
471467
{
472468
QCString bareName = g_htmlEntities[i].xml;
473469
if (!bareName.isEmpty() && bareName.at(0)=='<' && bareName.endsWith("/>"))

0 commit comments

Comments
 (0)