some cosmetic changes

This commit is contained in:
Michael Helmling
2012-02-25 18:59:53 +01:00
parent 9fd22023cd
commit 79670beca1
5 changed files with 54 additions and 59 deletions

View File

@ -108,18 +108,18 @@ TagLib::Tag *WavPack::File::tag() const
PropertyMap WavPack::File::properties() const
{
if (d->hasAPE)
if(d->hasAPE)
return d->tag.access<APE::Tag>(APEIndex, false)->properties();
if (d->hasID3v1)
if(d->hasID3v1)
return d->tag.access<ID3v1::Tag>(ID3v1Index, false)->properties();
return PropertyMap();
}
PropertyMap WavPack::File::setProperties(const PropertyMap &properties)
{
if (d->hasAPE)
if(d->hasAPE)
return d->tag.access<APE::Tag>(APEIndex, false)->setProperties(properties);
else if (d->hasID3v1)
else if(d->hasID3v1)
return d->tag.access<ID3v1::Tag>(ID3v1Index, false)->setProperties(properties);
else
return d->tag.access<APE::Tag>(APE, true)->setProperties(properties);