diff --git a/src/corelib/serialization/qxmlstream_p.h b/src/corelib/serialization/qxmlstream_p.h index f87006c7db..2194fd1143 100644 --- a/src/corelib/serialization/qxmlstream_p.h +++ b/src/corelib/serialization/qxmlstream_p.h @@ -191,7 +191,7 @@ public: XmlStringRef name; XmlStringRef qualifiedName; NamespaceDeclaration namespaceDeclaration; - int tagStackStringStorageSize; + qsizetype tagStackStringStorageSize; qsizetype namespaceDeclarationsSize; }; @@ -199,14 +199,14 @@ public: QXmlStreamPrivateTagStack(); QXmlStreamSimpleStack namespaceDeclarations; QString tagStackStringStorage; - int tagStackStringStorageSize; - int initialTagStackStringStorageSize; + qsizetype tagStackStringStorageSize; + qsizetype initialTagStackStringStorageSize; bool tagsDone; XmlStringRef addToStringStorage(QStringView s) { - int pos = tagStackStringStorageSize; - int sz = s.size(); + qsizetype pos = tagStackStringStorageSize; + qsizetype sz = s.size(); if (pos != tagStackStringStorage.size()) tagStackStringStorage.resize(pos); tagStackStringStorage.append(s.data(), sz);