mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
clang-tidy: don't assign in if
Found with bugprone-assignment-in-if-condition Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
983a35f5ae
commit
f40290dcaf
@ -186,9 +186,13 @@ String ID3v2::Tag::genre() const
|
||||
// the behavior the same as released versions it is being left with " ".
|
||||
|
||||
const FrameList &tconFrames = d->frameListMap["TCON"];
|
||||
TextIdentificationFrame *f;
|
||||
if(tconFrames.isEmpty() ||
|
||||
!(f = dynamic_cast<TextIdentificationFrame *>(tconFrames.front())))
|
||||
if(tconFrames.isEmpty())
|
||||
{
|
||||
return String();
|
||||
}
|
||||
|
||||
TextIdentificationFrame *f = dynamic_cast<TextIdentificationFrame *>(tconFrames.front());
|
||||
if(!f)
|
||||
{
|
||||
return String();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user