summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2007-01-13 10:35:09 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2007-01-13 10:35:09 (GMT)
commit84dc695cd534be6a58ae71ec7f2bcf3b6b5e9e64 (patch)
treeabd9c1049358238744e40a962d34eb929ad74554
parent6306fc4794e01572258ac9642d3a1f9351123908 (diff)
downloadDoxygen-84dc695cd534be6a58ae71ec7f2bcf3b6b5e9e64.zip
Doxygen-84dc695cd534be6a58ae71ec7f2bcf3b6b5e9e64.tar.gz
Doxygen-84dc695cd534be6a58ae71ec7f2bcf3b6b5e9e64.tar.bz2
Release-1.5.1-20070109
-rw-r--r--src/util.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 553cfec..8b822a8 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -6132,6 +6132,7 @@ bool checkIfTypedef(Definition *scope,FileDef *fileScope,const char *n)
QCString parseCommentAsText(const QString &doc,const QCString &fileName,int lineNr)
{
QString result;
+ if (doc.isEmpty()) return result.data();
QTextStream t(&result,IO_WriteOnly);
DocNode *root = validatingParseDoc(fileName,lineNr,Doxygen::globalScope,0,doc,FALSE,FALSE);
TextDocVisitor *visitor = new TextDocVisitor(t);