diff --git a/src/corelib/serialization/qxmlstream.cpp b/src/corelib/serialization/qxmlstream.cpp index 7e2d851c6d..17f75bb142 100644 --- a/src/corelib/serialization/qxmlstream.cpp +++ b/src/corelib/serialization/qxmlstream.cpp @@ -2850,7 +2850,7 @@ public: void write(const XmlStringRef &); void write(const QString &); void writeEscaped(const QString &, bool escapeWhitespace = false); - void write(const char *s, int len); + void write(const char *s, qsizetype len); template void write(const char (&s)[N]) { write(s, N - 1); } bool finishStartElement(bool contents = true); void writeStartElement(const QString &namespaceUri, const QString &name); @@ -2986,7 +2986,7 @@ void QXmlStreamWriterPrivate::writeEscaped(const QString &s, bool escapeWhitespa } // Writes utf8 -void QXmlStreamWriterPrivate::write(const char *s, int len) +void QXmlStreamWriterPrivate::write(const char *s, qsizetype len) { if (device) { if (hasIoError)