Shortened a bit of the ID3v2 ReplayGain code

CQTexperiment
Chris Moeller 2013-11-05 15:49:56 -08:00
parent a6608b57c4
commit 625ced97f3
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ float ID3v2::Tag::rg(const String &type) const
for (FrameList::ConstIterator it = list.begin(); it != list.end(); ++it) {
UserTextIdentificationFrame const* frame = static_cast<UserTextIdentificationFrame *>(*it);
if (!frame->description().isNull() && frame->description() == type) {
return static_cast<UserTextIdentificationFrame *>(*it)->toString().toFloat();
return frame->toString().toFloat();
}
}
}