Skip to content

Commit aedba79

Browse files
committed
Library Editor: Don't write empty comments
1 parent fb0477a commit aedba79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gui/cppchecklibrarydata.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ static void writeFunction(QXmlStreamWriter &xmlWriter, const CppcheckLibraryData
271271
while (comments.endsWith("\n"))
272272
comments.chop(1);
273273
foreach(const QString &comment, comments.split('\n')) {
274-
xmlWriter.writeComment(comment);
274+
if (comment.length() >= 1)
275+
xmlWriter.writeComment(comment);
275276
}
276277

277278
xmlWriter.writeStartElement("function");

0 commit comments

Comments
 (0)