forked from qt-creator/qt-creator
IOutputParser: Replace std{Out,Err} with a single parameterized function
Another step towards parser/formatter unification. Task-number: QTCREATORBUG-22665 Change-Id: I6de86b3aee2c54585cdd4b06d21b0ea67300aeac Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -190,9 +190,17 @@ bool IarParser::parseErrorMessage1(const QString &lne)
|
||||
return true;
|
||||
}
|
||||
|
||||
void IarParser::handleLine(const QString &line, OutputFormat type)
|
||||
{
|
||||
if (type == StdOutFormat)
|
||||
stdOutput(line);
|
||||
else
|
||||
stdError(line);
|
||||
}
|
||||
|
||||
void IarParser::stdError(const QString &line)
|
||||
{
|
||||
IOutputParser::stdError(line);
|
||||
IOutputParser::handleLine(line, StdErrFormat);
|
||||
|
||||
const QString lne = rightTrimmed(line);
|
||||
|
||||
@@ -232,7 +240,7 @@ void IarParser::stdError(const QString &line)
|
||||
|
||||
void IarParser::stdOutput(const QString &line)
|
||||
{
|
||||
IOutputParser::stdOutput(line);
|
||||
IOutputParser::handleLine(line, StdOutFormat);
|
||||
|
||||
const QString lne = rightTrimmed(line);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user