summaryrefslogtreecommitdiffstats
path: root/src/docbookvisitor.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2013-12-01 14:16:26 (GMT)
committeralbert-github <albert.tests@gmail.com>2013-12-01 14:16:26 (GMT)
commita481a84fdf39cdf40b38ebaad86b2a159db4c383 (patch)
treed1cc2141ef0dd061c635940e6740e2c641c821d9 /src/docbookvisitor.cpp
parentd809d163b60a42850c0c4db72c1ba1ed7785416b (diff)
downloadDoxygen-a481a84fdf39cdf40b38ebaad86b2a159db4c383.zip
Doxygen-a481a84fdf39cdf40b38ebaad86b2a159db4c383.tar.gz
Doxygen-a481a84fdf39cdf40b38ebaad86b2a159db4c383.tar.bz2
Bug 719639 - @xrefitem with empty heading string
Replaced: if (!(x->title().length())) return; by: if (x->title().isEmpty()) return;
Diffstat (limited to 'src/docbookvisitor.cpp')
-rw-r--r--src/docbookvisitor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/docbookvisitor.cpp b/src/docbookvisitor.cpp
index 151f12d..aaea045 100644
--- a/src/docbookvisitor.cpp
+++ b/src/docbookvisitor.cpp
@@ -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>";
}