diff options
author | Lauri Laanmets <lauri.laanmets@eesti.ee> | 2021-09-23 14:16:54 +0300 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2021-11-09 10:28:57 +0100 |
commit | 52def5c06193356bf53537b59a56ca2fa62fab3d (patch) | |
tree | 02d233b8e03b2f6c75e1fd5c0dc18654116d3c0f /src/location/declarativemaps/qparameterizableobject.cpp | |
parent | d46a99871601ed4af1260234126c7a7e9d8f2f41 (diff) | |
download | qtlocation-52def5c06193356bf53537b59a56ca2fa62fab3d.tar.gz |
replace int by qsizetype
For "count" and "at" methods, the parameter or return type
int was replaced by qsizetype. This patch adapts
the code to this change.
Task-number: QTBUG-96795
Change-Id: Id409ab573cce886649a72538584dfa57264e7dac
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qparameterizableobject.cpp')
-rw-r--r-- | src/location/declarativemaps/qparameterizableobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/location/declarativemaps/qparameterizableobject.cpp b/src/location/declarativemaps/qparameterizableobject.cpp index b1e588e6..6c87819a 100644 --- a/src/location/declarativemaps/qparameterizableobject.cpp +++ b/src/location/declarativemaps/qparameterizableobject.cpp @@ -66,12 +66,12 @@ void QParameterizableObject::append(QQmlListProperty<QObject> *p, QObject *v) object->appendChild(v); } -int QParameterizableObject::count(QQmlListProperty<QObject> *p) +qsizetype QParameterizableObject::count(QQmlListProperty<QObject> *p) { return static_cast<QParameterizableObject*>(p->object)->m_children.count(); } -QObject *QParameterizableObject::at(QQmlListProperty<QObject> *p, int idx) +QObject *QParameterizableObject::at(QQmlListProperty<QObject> *p, qsizetype idx) { return static_cast<QParameterizableObject*>(p->object)->m_children.at(idx); } |