mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-05 12:56:52 +01:00
Utilities: Remove unnecessary constData() in Sha1CoverHash
This commit is contained in:
parent
dbbedee77f
commit
658c116eac
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user