Library Editor: Don't write empty comments

This commit is contained in:
Daniel Marjamäki 2015-11-21 16:10:14 +01:00
parent fb0477affd
commit aedba792b5
1 changed files with 2 additions and 1 deletions

View File

@ -271,7 +271,8 @@ static void writeFunction(QXmlStreamWriter &xmlWriter, const CppcheckLibraryData
while (comments.endsWith("\n"))
comments.chop(1);
foreach(const QString &comment, comments.split('\n')) {
xmlWriter.writeComment(comment);
if (comment.length() >= 1)
xmlWriter.writeComment(comment);
}
xmlWriter.writeStartElement("function");