Fix wrong task type returned by gccparser

* Fix "instantiated from" with leading spaces being wrongly considered
   an error.
 * Add a unit test to cover this case
This commit is contained in:
Tobias Hunger
2010-07-15 12:36:24 +02:00
parent 615cda8430
commit 503b35340c
2 changed files with 33 additions and 1 deletions

View File

@@ -89,7 +89,7 @@ void LdParser::stdError(const QString &line)
int lineno = m_regExpLinker.cap(4).toInt(&ok);
if (!ok)
lineno = -1;
QString description = m_regExpLinker.cap(5);
QString description = m_regExpLinker.cap(5).trimmed();
Task task(Task::Error,
description,
m_regExpLinker.cap(1) /* filename */,