Port some fallthrough comments to Q_FALLTHROUGH

Change-Id: I70dd492d5c8d198589bfd642db63182cf17b133f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Giuseppe D'Angelo 2021-05-27 14:24:23 +02:00
parent 4059af81d3
commit b548c321d7
3 changed files with 4 additions and 4 deletions

View File

@ -242,7 +242,7 @@ static void sm_performSaveYourself(QXcbSessionManager *sm)
sm->appCommitData();
if (sm_isshutdown && sm_cancel)
break; // we cancelled the shutdown, no need to save state
// fall through
Q_FALLTHROUGH();
case SmSaveLocal:
sm->appSaveState();
break;

View File

@ -1451,7 +1451,7 @@ QString QMYSQLDriver::formatValue(const QSqlField &field, bool trimStrings) cons
} else {
qWarning("QMYSQLDriver::formatValue: Database not open");
}
// fall through
Q_FALLTHROUGH();
default:
r = QSqlDriver::formatValue(field, trimStrings);
}

View File

@ -1676,7 +1676,7 @@ bool QODBCResult::exec()
ind);
break;
}
// fall through
Q_FALLTHROUGH();
default: {
QByteArray &ba = tmpStorage[i];
if (*ind != SQL_NULL_DATA)
@ -1769,7 +1769,7 @@ bool QODBCResult::exec()
}
break;
}
// fall through
Q_FALLTHROUGH();
default: {
if (bindValueType(i) & QSql::Out)
values[i] = tmpStorage.at(i);