Commit a481a84f authored by albert-github's avatar albert-github

Bug 719639 - @xrefitem with empty heading string

Replaced:
  if (!(x->title().length())) return;
by:
  if (x->title().isEmpty()) return;
parent d809d163
......@@ -1160,7 +1160,7 @@ void DocbookDocVisitor::visitPost(DocParamList *)
void DocbookDocVisitor::visitPre(DocXRefItem *x)
{
if (m_hide) return;
if (!(x->title().length())) return;
if (x->title().isEmpty()) return;
m_t << "<para><link linkend=\"";
m_t << x->file() << "_1" << x->anchor();
m_t << "\">";
......@@ -1172,7 +1172,7 @@ void DocbookDocVisitor::visitPre(DocXRefItem *x)
void DocbookDocVisitor::visitPost(DocXRefItem *x)
{
if (m_hide) return;
if (!(x->title().length())) return;
if (x->title().isEmpty()) return;
m_t << "</para>";
}
......
......@@ -1777,7 +1777,7 @@ void HtmlDocVisitor::visitPost(DocParamList *)
void HtmlDocVisitor::visitPre(DocXRefItem *x)
{
if (m_hide) return;
if (!(x->title().length())) return;
if (x->title().isEmpty()) return;
forceEndParagraph(x);
bool anonymousEnum = x->file()=="@";
......@@ -1800,7 +1800,7 @@ void HtmlDocVisitor::visitPre(DocXRefItem *x)
void HtmlDocVisitor::visitPost(DocXRefItem *x)
{
if (m_hide) return;
if (!(x->title().length())) return;
if (x->title().isEmpty()) return;
m_t << "</dd></dl>" << endl;
forceStartParagraph(x);
}
......
......@@ -1515,7 +1515,7 @@ void LatexDocVisitor::visitPost(DocParamList *pl)
void LatexDocVisitor::visitPre(DocXRefItem *x)
{
if (m_hide) return;
if (!(x->title().length())) return;
if (x->title().isEmpty()) return;
m_t << "\\begin{DoxyRefDesc}{";
filter(x->title());
m_t << "}" << endl;
......@@ -1538,7 +1538,7 @@ void LatexDocVisitor::visitPre(DocXRefItem *x)
void LatexDocVisitor::visitPost(DocXRefItem *x)
{
if (m_hide) return;
if (!(x->title().length())) return;
if (x->title().isEmpty()) return;
m_t << "\\end{DoxyRefDesc}" << endl;
}
......
......@@ -933,7 +933,7 @@ void ManDocVisitor::visitPost(DocParamList *pl)
void ManDocVisitor::visitPre(DocXRefItem *x)
{
if (m_hide) return;
if (!(x->title().length())) return;
if (x->title().isEmpty()) return;
if (!m_firstCol)
{
m_t << endl;
......@@ -948,7 +948,7 @@ void ManDocVisitor::visitPre(DocXRefItem *x)
void ManDocVisitor::visitPost(DocXRefItem *x)
{
if (m_hide) return;
if (!(x->title().length())) return;
if (x->title().isEmpty()) return;
if (!m_firstCol) m_t << endl;
m_t << ".RE" << endl;
m_t << ".PP" << endl;
......
......@@ -1360,14 +1360,14 @@ void PerlModDocVisitor::visitPre(DocXRefItem *x)
m_output.add("</xreftitle>");
m_output.add("<xrefdescription>");
#endif
if (!(x->title().length())) return;
if (x->title().isEmpty()) return;
openItem("xrefitem");
openSubBlock("content");
}
void PerlModDocVisitor::visitPost(DocXRefItem *x)
{
if (!(x->title().length())) return;
if (x->title().isEmpty()) return;
closeSubBlock();
closeItem();
#if 0
......
......@@ -1579,7 +1579,7 @@ void RTFDocVisitor::visitPost(DocParamList *pl)
void RTFDocVisitor::visitPre(DocXRefItem *x)
{
if (m_hide) return;
if (!(x->title().length())) return;
if (x->title().isEmpty()) return;
bool anonymousEnum = x->file()=="@";
DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocXRefItem)}\n");
m_t << "{"; // start param list
......@@ -1628,7 +1628,7 @@ void RTFDocVisitor::visitPre(DocXRefItem *x)
void RTFDocVisitor::visitPost(DocXRefItem *x)
{
if (m_hide) return;
if (!(x->title().length())) return;
if (x->title().isEmpty()) return;
DBG_RTF("{\\comment RTFDocVisitor::visitPost(DocXRefItem)}\n");
m_t << "\\par" << endl;
decIndentLevel();
......
......@@ -1012,7 +1012,7 @@ void XmlDocVisitor::visitPost(DocParamList *)
void XmlDocVisitor::visitPre(DocXRefItem *x)
{
if (m_hide) return;
if (!(x->title().length())) return;
if (x->title().isEmpty()) return;
m_t << "<xrefsect id=\"";
m_t << x->file() << "_1" << x->anchor();
m_t << "\">";
......@@ -1025,7 +1025,7 @@ void XmlDocVisitor::visitPre(DocXRefItem *x)
void XmlDocVisitor::visitPost(DocXRefItem *x)
{
if (m_hide) return;
if (!(x->title().length())) return;
if (x->title().isEmpty()) return;
m_t << "</xrefdescription>";
m_t << "</xrefsect>";
}
......
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