Port some fallthrough comments to Q_FALLTHROUGH
Change-Id: I70dd492d5c8d198589bfd642db63182cf17b133f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
4059af81d3
commit
b548c321d7
@ -242,7 +242,7 @@ static void sm_performSaveYourself(QXcbSessionManager *sm)
|
|||||||
sm->appCommitData();
|
sm->appCommitData();
|
||||||
if (sm_isshutdown && sm_cancel)
|
if (sm_isshutdown && sm_cancel)
|
||||||
break; // we cancelled the shutdown, no need to save state
|
break; // we cancelled the shutdown, no need to save state
|
||||||
// fall through
|
Q_FALLTHROUGH();
|
||||||
case SmSaveLocal:
|
case SmSaveLocal:
|
||||||
sm->appSaveState();
|
sm->appSaveState();
|
||||||
break;
|
break;
|
||||||
|
@ -1451,7 +1451,7 @@ QString QMYSQLDriver::formatValue(const QSqlField &field, bool trimStrings) cons
|
|||||||
} else {
|
} else {
|
||||||
qWarning("QMYSQLDriver::formatValue: Database not open");
|
qWarning("QMYSQLDriver::formatValue: Database not open");
|
||||||
}
|
}
|
||||||
// fall through
|
Q_FALLTHROUGH();
|
||||||
default:
|
default:
|
||||||
r = QSqlDriver::formatValue(field, trimStrings);
|
r = QSqlDriver::formatValue(field, trimStrings);
|
||||||
}
|
}
|
||||||
|
@ -1676,7 +1676,7 @@ bool QODBCResult::exec()
|
|||||||
ind);
|
ind);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// fall through
|
Q_FALLTHROUGH();
|
||||||
default: {
|
default: {
|
||||||
QByteArray &ba = tmpStorage[i];
|
QByteArray &ba = tmpStorage[i];
|
||||||
if (*ind != SQL_NULL_DATA)
|
if (*ind != SQL_NULL_DATA)
|
||||||
@ -1769,7 +1769,7 @@ bool QODBCResult::exec()
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// fall through
|
Q_FALLTHROUGH();
|
||||||
default: {
|
default: {
|
||||||
if (bindValueType(i) & QSql::Out)
|
if (bindValueType(i) & QSql::Out)
|
||||||
values[i] = tmpStorage.at(i);
|
values[i] = tmpStorage.at(i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user