Fix two missing conversions from in to qsizetype
Change-Id: I08ac9a0eb5dfb17f2b6cfaca9e3f3d7375c02bd4 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
133067085a
commit
5b76be7e2b
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user