forked from qt-creator/qt-creator
Add whitespace after control keywords
find -name \*.cpp -o -name \*.h | \ xargs sed -Ei 's/ (for|foreach|if|switch|while)\(/ \1 (/g' Change-Id: I9efdff4bf0c8c01a52baaaeb75198483c77b0390 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
3747e941ad
commit
a44aa55502
@@ -211,7 +211,7 @@ QString QmlError::toString() const
|
||||
rv = QLatin1String("<Unknown File>");
|
||||
} else if (line() != -1) {
|
||||
rv = url().toString() + QLatin1Char(':') + QString::number(line());
|
||||
if(column() != -1)
|
||||
if (column() != -1)
|
||||
rv += QLatin1Char(':') + QString::number(column());
|
||||
} else {
|
||||
rv = url().toString();
|
||||
@@ -251,7 +251,7 @@ QDebug operator<<(QDebug debug, const QmlError &error)
|
||||
const QString &line = lines.at(error.line() - 1);
|
||||
debug << "\n " << qPrintable(line);
|
||||
|
||||
if(error.column() > 0) {
|
||||
if (error.column() > 0) {
|
||||
int column = qMax(0, error.column() - 1);
|
||||
column = qMin(column, line.length());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user