forked from qt-creator/qt-creator
Fix coding style for else statements
Change-Id: I1309db70e98d678e150388c76ce665e988fdf081 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
c67f7f6349
commit
ad9e7ccab6
@@ -255,14 +255,13 @@ protected:
|
||||
qreal result = badnessFromSplits;
|
||||
foreach (const QString &line, lines) {
|
||||
// really long lines should be avoided at all cost
|
||||
if (line.size() > strongMaxLineLength)
|
||||
if (line.size() > strongMaxLineLength) {
|
||||
result += 50 + (line.size() - strongMaxLineLength);
|
||||
// having long lines is bad
|
||||
else if (line.size() > maxLineLength) {
|
||||
} else if (line.size() > maxLineLength) {
|
||||
result += 3 + (line.size() - maxLineLength);
|
||||
}
|
||||
// and even ok-sized lines should have a cost
|
||||
else {
|
||||
} else {
|
||||
result += 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user