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