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 <thiago.macieira@intel.com>
Giuseppe D'Angelo 2019-05-13 18:38:59 +02:00
parent a73385e2cf
commit 7f35255d87
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ public:
}
// the number of QByteArrays
inline qint64 bufferCount() const
inline int bufferCount() const
{
return buffers.length();
}