From 2c99a8db69e40620d91d7415b02a8e222f2a2c59 Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Mon, 4 Oct 2021 11:30:05 +0300 Subject: Add comments to use qsizetype for some APIs in Qt 7 Task-number: QTBUG-91163 Change-Id: Iee52fce16d899a2a72277e314d7dc65b27da3b88 Reviewed-by: Ulf Hermann --- src/qml/jsruntime/qv4sequenceobject.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qml/jsruntime/qv4sequenceobject.cpp') diff --git a/src/qml/jsruntime/qv4sequenceobject.cpp b/src/qml/jsruntime/qv4sequenceobject.cpp index cfac1f9569..147163e653 100644 --- a/src/qml/jsruntime/qv4sequenceobject.cpp +++ b/src/qml/jsruntime/qv4sequenceobject.cpp @@ -202,6 +202,7 @@ public: defineAccessorProperty(QStringLiteral("length"), method_get_length, method_set_length); } + // ### Qt 7 use qsizetype instead. QV4::ReturnedValue containerGetIndexed(uint index, bool *hasProperty) const { /* Qt containers have int (rather than uint) allowable indexes. */ @@ -229,6 +230,7 @@ public: return Encode::undefined(); } + // ### Qt 7 use qsizetype instead. bool containerPutIndexed(uint index, const QV4::Value &value) { if (internalClass()->engine->hasException) -- cgit v1.2.3