From 7f35255d87dfa4249cb21dcadf407dd78b48296a Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Mon, 13 May 2019 18:38:59 +0200 Subject: [PATCH] QByteData: use int to return the number of managed QByteArrays The internal QByteArrays are kept in a QList, so we can use int to get the count. This matches what operator[] takes, and gets rid of a bunch of warnings when iterating over a QByteData using a plain int as a index variable. Change-Id: Ib44d4101612135b976979a8464442e94706f8736 Reviewed-by: Thiago Macieira --- src/corelib/tools/qbytedata_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/tools/qbytedata_p.h b/src/corelib/tools/qbytedata_p.h index 8331be112d..b319d75811 100644 --- a/src/corelib/tools/qbytedata_p.h +++ b/src/corelib/tools/qbytedata_p.h @@ -199,7 +199,7 @@ public: } // the number of QByteArrays - inline qint64 bufferCount() const + inline int bufferCount() const { return buffers.length(); }