From 580c2c715ce0fe9360cfa3a543b0f9eebcd8a767 Mon Sep 17 00:00:00 2001
From: David Faure <david.faure@kdab.com>
Date: Thu, 5 Dec 2013 23:51:01 +0100
Subject: [PATCH] normalize: remove wrong assert.

Many C++ source files don't end with a '\n'

Change-Id: I785ee0ac0678f63ae41b2bcaddc77bc4c3e5c16e
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
---
 util/normalize/main.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/util/normalize/main.cpp b/util/normalize/main.cpp
index 7efeff1..a0c4dc3 100644
--- a/util/normalize/main.cpp
+++ b/util/normalize/main.cpp
@@ -126,7 +126,6 @@ void check(const QString &fileName)
         if (bline.isEmpty())
             break;
         QString line = QString::fromLocal8Bit(bline);
-        Q_ASSERT_X(line.endsWith("\n"), "check()", fileName.toLocal8Bit().constData());
         found |= checkSignature(fileName, line, "SLOT");
         found |= checkSignature(fileName, line, "SIGNAL");
         if (modify)
-- 
GitLab