From 0907e86a94df336b8ba3fa95b87c9da616960ee6 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sun, 15 Apr 2012 02:40:23 -0700 Subject: [PATCH] Rename anonymous enumeration symbols to be unique in apefile.cpp --- taglib/ape/apefile.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/taglib/ape/apefile.cpp b/taglib/ape/apefile.cpp index 44f459e9..cb652242 100644 --- a/taglib/ape/apefile.cpp +++ b/taglib/ape/apefile.cpp @@ -47,7 +47,7 @@ using namespace TagLib; namespace { - enum { APEIndex, ID3v1Index }; + enum { ApeAPEIndex, ApeID3v1Index }; } class APE::File::FilePrivate @@ -113,28 +113,28 @@ TagLib::Tag *APE::File::tag() const PropertyMap APE::File::properties() const { if(d->hasAPE) - return d->tag.access(APEIndex, false)->properties(); + return d->tag.access(ApeAPEIndex, false)->properties(); if(d->hasID3v1) - return d->tag.access(ID3v1Index, false)->properties(); + return d->tag.access(ApeID3v1Index, false)->properties(); return PropertyMap(); } void APE::File::removeUnsupportedProperties(const StringList &properties) { if(d->hasAPE) - d->tag.access(APEIndex, false)->removeUnsupportedProperties(properties); + d->tag.access(ApeAPEIndex, false)->removeUnsupportedProperties(properties); if(d->hasID3v1) - d->tag.access(ID3v1Index, false)->removeUnsupportedProperties(properties); + d->tag.access(ApeID3v1Index, false)->removeUnsupportedProperties(properties); } PropertyMap APE::File::setProperties(const PropertyMap &properties) { if(d->hasAPE) - return d->tag.access(APEIndex, false)->setProperties(properties); + return d->tag.access(ApeAPEIndex, false)->setProperties(properties); else if(d->hasID3v1) - return d->tag.access(ID3v1Index, false)->setProperties(properties); + return d->tag.access(ApeID3v1Index, false)->setProperties(properties); else - return d->tag.access(APEIndex, true)->setProperties(properties); + return d->tag.access(ApeAPEIndex, true)->setProperties(properties); } APE::Properties *APE::File::audioProperties() const @@ -213,23 +213,23 @@ bool APE::File::save() ID3v1::Tag *APE::File::ID3v1Tag(bool create) { - return d->tag.access(ID3v1Index, create); + return d->tag.access(ApeID3v1Index, create); } APE::Tag *APE::File::APETag(bool create) { - return d->tag.access(APEIndex, create); + return d->tag.access(ApeAPEIndex, create); } void APE::File::strip(int tags) { if(tags & ID3v1) { - d->tag.set(ID3v1Index, 0); + d->tag.set(ApeID3v1Index, 0); APETag(true); } if(tags & APE) { - d->tag.set(APEIndex, 0); + d->tag.set(ApeAPEIndex, 0); if(!ID3v1Tag()) APETag(true); @@ -247,7 +247,7 @@ void APE::File::read(bool readProperties, Properties::ReadStyle /* propertiesSty d->ID3v1Location = findID3v1(); if(d->ID3v1Location >= 0) { - d->tag.set(ID3v1Index, new ID3v1::Tag(this, d->ID3v1Location)); + d->tag.set(ApeID3v1Index, new ID3v1::Tag(this, d->ID3v1Location)); d->hasID3v1 = true; } @@ -256,7 +256,7 @@ void APE::File::read(bool readProperties, Properties::ReadStyle /* propertiesSty d->APELocation = findAPE(); if(d->APELocation >= 0) { - d->tag.set(APEIndex, new APE::Tag(this, d->APELocation)); + d->tag.set(ApeAPEIndex, new APE::Tag(this, d->APELocation)); d->APESize = APETag()->footer()->completeTagSize(); d->APELocation = d->APELocation + APETag()->footer()->size() - d->APESize; d->hasAPE = true;