Skip to content

Commit

Permalink
chore: fix build failed
Browse files Browse the repository at this point in the history
The `String::isNull` of taglib is deprecated

Log: as title
  • Loading branch information
Johnson-zs committed Jul 2, 2024
1 parent d973ed8 commit 27f900b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ void MusicMessageView::characterEncodingTransform(MediaMeta &meta, void *obj)
{
TagLib::Tag *tag = static_cast<TagLib::Tag *>(obj);
bool encode = true;
encode &= tag->title().isNull() ? true : tag->title().isLatin1();
encode &= tag->artist().isNull() ? true : tag->artist().isLatin1();
encode &= tag->album().isNull() ? true : tag->album().isLatin1();
encode &= tag->title().isEmpty() ? true : tag->title().isLatin1();
encode &= tag->artist().isEmpty() ? true : tag->artist().isLatin1();
encode &= tag->album().isEmpty() ? true : tag->album().isLatin1();

QByteArray detectByte;
QByteArray detectCodec;
Expand Down

0 comments on commit 27f900b

Please sign in to comment.