forked from qt-creator/qt-creator
Fix formatting of proparser messages
In case of no line number, but file name. Change-Id: I2c51e5834e113c8f98b018df361b0504c4bd79f9 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -38,8 +38,8 @@ static QString format(const QString &fileName, int lineNo, const QString &msg)
|
||||
{
|
||||
if (lineNo > 0)
|
||||
return QString::fromLatin1("%1(%2): %3").arg(fileName, QString::number(lineNo), msg);
|
||||
else if (lineNo)
|
||||
return QString::fromLatin1("%1: %3").arg(fileName, msg);
|
||||
else if (!fileName.isEmpty())
|
||||
return QString::fromLatin1("%1: %2").arg(fileName, msg);
|
||||
else
|
||||
return msg;
|
||||
}
|
||||
|
Reference in New Issue
Block a user