Utilities: Remove unnecessary constData() in Sha1CoverHash

This commit is contained in:
Jonas Kvinge 2022-07-10 19:14:05 +02:00
parent dbbedee77f
commit 658c116eac
1 changed files with 2 additions and 2 deletions

View File

@ -517,8 +517,8 @@ QByteArray HmacSha1(const QByteArray &key, const QByteArray &data) {
QByteArray Sha1CoverHash(const QString &artist, const QString &album) {
QCryptographicHash hash(QCryptographicHash::Sha1);
hash.addData(artist.toLower().toUtf8().constData());
hash.addData(album.toLower().toUtf8().constData());
hash.addData(artist.toLower().toUtf8());
hash.addData(album.toLower().toUtf8());
return hash.result();