TagReaderTest: Remove use of deprecated QCryptographicHash constructor
This commit is contained in:
parent
6afbc71b4a
commit
16ac9ea061
@ -86,7 +86,7 @@ class TagReaderTest : public ::testing::Test {
|
|||||||
qint64 bytes_read = qMin(file.bytesAvailable(), 8192LL);
|
qint64 bytes_read = qMin(file.bytesAvailable(), 8192LL);
|
||||||
buffer = file.read(bytes_read);
|
buffer = file.read(bytes_read);
|
||||||
if (buffer.isEmpty()) break;
|
if (buffer.isEmpty()) break;
|
||||||
hash.addData(buffer, bytes_read);
|
hash.addData(buffer);
|
||||||
}
|
}
|
||||||
file.close();
|
file.close();
|
||||||
return hash.result().toHex();
|
return hash.result().toHex();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user