diff --git a/src/corelib/serialization/qxmlstream.h b/src/corelib/serialization/qxmlstream.h index 371a9780f9..519600143f 100644 --- a/src/corelib/serialization/qxmlstream.h +++ b/src/corelib/serialization/qxmlstream.h @@ -67,7 +67,7 @@ public: } inline operator QStringView() const { return QStringView(m_string.data(), m_string.size); } - inline int size() const { return m_string.size; } + inline qsizetype size() const { return m_string.size; } }; }