From aedba792b53c470c8b01fba2184b31d059f317fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 21 Nov 2015 16:10:14 +0100 Subject: [PATCH] Library Editor: Don't write empty comments --- gui/cppchecklibrarydata.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/cppchecklibrarydata.cpp b/gui/cppchecklibrarydata.cpp index a3a4168c6..48534c16e 100644 --- a/gui/cppchecklibrarydata.cpp +++ b/gui/cppchecklibrarydata.cpp @@ -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");