From 94415009a3260bfa516b953beadb3f4c8ac2aab3 Mon Sep 17 00:00:00 2001 From: Peter Varga Date: Thu, 26 Nov 2020 09:02:42 +0100 Subject: Use qsizetype instead of int for QQmlListProperty Fixes build with the latest qtdeclarative. Change-Id: Ib075cf3515db044c00b93f71ae651151f7e64a97 Reviewed-by: Milian Wolff --- src/webchannel/qqmlwebchannel.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/webchannel/qqmlwebchannel.h') diff --git a/src/webchannel/qqmlwebchannel.h b/src/webchannel/qqmlwebchannel.h index d6b7bb9..72d067a 100644 --- a/src/webchannel/qqmlwebchannel.h +++ b/src/webchannel/qqmlwebchannel.h @@ -77,13 +77,13 @@ private: Q_PRIVATE_SLOT(d_func(), void _q_objectIdChanged(const QString &newId)) static void registeredObjects_append(QQmlListProperty *prop, QObject *item); - static int registeredObjects_count(QQmlListProperty *prop); - static QObject *registeredObjects_at(QQmlListProperty *prop, int index); + static qsizetype registeredObjects_count(QQmlListProperty *prop); + static QObject *registeredObjects_at(QQmlListProperty *prop, qsizetype index); static void registeredObjects_clear(QQmlListProperty *prop); static void transports_append(QQmlListProperty *prop, QObject *item); - static int transports_count(QQmlListProperty *prop); - static QObject *transports_at(QQmlListProperty *prop, int index); + static qsizetype transports_count(QQmlListProperty *prop); + static QObject *transports_at(QQmlListProperty *prop, qsizetype index); static void transports_clear(QQmlListProperty *prop); }; -- cgit v1.2.3