Fix two missing conversions from in to qsizetype

Change-Id: I08ac9a0eb5dfb17f2b6cfaca9e3f3d7375c02bd4
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Allan Sandfeld Jensen 2020-10-29 13:26:04 +01:00
parent 133067085a
commit 5b76be7e2b
3 changed files with 3 additions and 3 deletions

View File

@ -1217,7 +1217,7 @@ static QString convertToUnicodeCharByChar(QByteArrayView in, QStringConverter::S
copyLocation = state->remainingChars;
extra += copyLocation;
}
int newLength = length + extra;
qsizetype newLength = length + extra;
char *mbcs = new char[newLength];
//ensure that we have a NULL terminated string
mbcs[newLength-1] = 0;

View File

@ -213,7 +213,7 @@ void QMessageAuthenticationCode::setKey(const QByteArray &key)
/*!
Adds the first \a length chars of \a data to the message.
*/
void QMessageAuthenticationCode::addData(const char *data, int length)
void QMessageAuthenticationCode::addData(const char *data, qsizetype length)
{
d->initMessageHash();
d->messageHash.addData(data, length);

View File

@ -59,7 +59,7 @@ public:
void setKey(const QByteArray &key);
void addData(const char *data, int length);
void addData(const char *data, qsizetype length);
void addData(const QByteArray &data);
bool addData(QIODevice *device);