avoid shadowing in QDateTimeParser::findAmPm()

upstream commit:
54ece34283

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-08-08 18:26:48 +00:00
parent 420df9fe9c
commit e03aa32c3f

View file

@ -5082,9 +5082,9 @@ int QDateTimeParser::findDay(const QString &str1, int startDay, int sectionIndex
*/
int QDateTimeParser::findAmPm(QString &str, int index, int *used) const
int QDateTimeParser::findAmPm(QString &str, int sectionIndex, int *used) const
{
const SectionNode &s = sectionNode(index);
const SectionNode &s = sectionNode(sectionIndex);
if (Q_UNLIKELY(s.type != AmPmSection)) {
qWarning("QDateTimeParser::findAmPm Internal error");
return -1;
@ -5095,7 +5095,7 @@ int QDateTimeParser::findAmPm(QString &str, int index, int *used) const
return PossibleBoth;
}
const QLatin1Char space(' ');
int size = sectionMaxSize(index);
int size = sectionMaxSize(sectionIndex);
enum {
amindex = 0,