QXmlStreamReader: port another indexed to ranged for loop
... fixing yet another int/qsizetype mismatch. This is clearly safe, as the loop body trivially doesn't modifiy the container we're iterating over. Pick-to: 6.3 6.2 Task-number: QTBUG-102465 Change-Id: I7db65455019cf75663432078d39805be5816cf24 Reviewed-by: Lars Knoll <lars.knoll@qt.io>bb10
parent
f7fb3735cf
commit
6245d7dd3b
|
|
@ -1205,8 +1205,7 @@ attribute ::= qname space_opt EQ space_opt attribute_value;
|
|||
|
||||
XmlStringRef attributeQualifiedName = symName(1);
|
||||
bool normalize = false;
|
||||
for (int a = 0; a < dtdAttributes.size(); ++a) {
|
||||
DtdAttribute &dtdAttribute = dtdAttributes[a];
|
||||
for (const DtdAttribute &dtdAttribute : std::as_const(dtdAttributes)) {
|
||||
if (!dtdAttribute.isCDATA
|
||||
&& dtdAttribute.tagName == qualifiedName
|
||||
&& dtdAttribute.attributeQualifiedName == attributeQualifiedName
|
||||
|
|
|
|||
|
|
@ -768,8 +768,7 @@ bool QXmlStreamReaderPrivate::parse()
|
|||
|
||||
XmlStringRef attributeQualifiedName = symName(1);
|
||||
bool normalize = false;
|
||||
for (int a = 0; a < dtdAttributes.size(); ++a) {
|
||||
DtdAttribute &dtdAttribute = dtdAttributes[a];
|
||||
for (const DtdAttribute &dtdAttribute : std::as_const(dtdAttributes)) {
|
||||
if (!dtdAttribute.isCDATA
|
||||
&& dtdAttribute.tagName == qualifiedName
|
||||
&& dtdAttribute.attributeQualifiedName == attributeQualifiedName
|
||||
|
|
|
|||
Loading…
Reference in New Issue