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
@@ -75,15 +75,15 @@ QString UnixUtils::substituteFileBrowserParameters(const QString &pre, const QSt
|
||||
if (c == QLatin1Char('%') && i < pre.size()-1) {
|
||||
c = pre.at(++i);
|
||||
QString s;
|
||||
if (c == QLatin1Char('d'))
|
||||
if (c == QLatin1Char('d')) {
|
||||
s = QLatin1Char('"') + QFileInfo(file).path() + QLatin1Char('"');
|
||||
else if (c == QLatin1Char('f'))
|
||||
} else if (c == QLatin1Char('f')) {
|
||||
s = QLatin1Char('"') + file + QLatin1Char('"');
|
||||
else if (c == QLatin1Char('n'))
|
||||
} else if (c == QLatin1Char('n')) {
|
||||
s = QLatin1Char('"') + QFileInfo(file).fileName() + QLatin1Char('"');
|
||||
else if (c == QLatin1Char('%'))
|
||||
} else if (c == QLatin1Char('%')) {
|
||||
s = c;
|
||||
else {
|
||||
} else {
|
||||
s = QLatin1Char('%');
|
||||
s += c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user