correct type initialization in QDateTimeParser::fieldInfo()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-06-02 21:33:24 +03:00
parent 7756e66b91
commit 57dbd9c464

View file

@ -4938,7 +4938,7 @@ int QDateTimeParser::maxChange(int index) const
QDateTimeParser::FieldInfo QDateTimeParser::fieldInfo(int index) const
{
FieldInfo ret = Q_NULLPTR;
FieldInfo ret = 0;
const SectionNode &sn = sectionNode(index);
const Section s = sn.type;
switch (s) {