rename "remove()" to "strip()" to be consistent with MPEG::File

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@768450 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Scott Wheeler 2008-01-30 03:31:41 +00:00
parent adc7c9c841
commit 458b2b3335
6 changed files with 20 additions and 7 deletions

View File

@ -225,7 +225,7 @@ APE::Tag *MPC::File::APETag(bool create)
return d->APETag;
}
void MPC::File::remove(int tags)
void MPC::File::strip(int tags)
{
if(tags & ID3v1) {
delete d->ID3v1Tag;
@ -253,6 +253,11 @@ void MPC::File::remove(int tags)
}
}
void MPC::File::remove(int tags)
{
strip(tags);
}
////////////////////////////////////////////////////////////////////////////////
// private members

View File

@ -142,12 +142,20 @@ namespace TagLib {
* This will remove the tags that match the OR-ed together TagTypes from the
* file. By default it removes all tags.
*
* \note This will also invalidate pointers to the tags
* \warning This will also invalidate pointers to the tags
* as their memory will be freed.
* \note In order to make the removal permanent save() still needs to be called
*
* \note In order to make the removal permanent save() still needs to be called.
*/
void strip(int tags = AllTags);
/*!
* \deprecated
* \see strip
*/
void remove(int tags = AllTags);
private:
File(const File &);
File &operator=(const File &);

View File

@ -207,7 +207,7 @@ ID3v2::Tag *TrueAudio::File::ID3v2Tag(bool create)
return d->ID3v2Tag;
}
void TrueAudio::File::remove(int tags)
void TrueAudio::File::strip(int tags)
{
if(tags & ID3v1) {
delete d->ID3v1Tag;

View File

@ -160,7 +160,7 @@ namespace TagLib {
* as their memory will be freed.
* \note In order to make the removal permanent save() still needs to be called
*/
void remove(int tags = AllTags);
void strip(int tags = AllTags);
private:
File(const File &);

View File

@ -207,7 +207,7 @@ APE::Tag *WavPack::File::APETag(bool create)
return d->APETag;
}
void WavPack::File::remove(int tags)
void WavPack::File::strip(int tags)
{
if(tags & ID3v1) {
delete d->ID3v1Tag;

View File

@ -144,7 +144,7 @@ namespace TagLib {
* as their memory will be freed.
* \note In order to make the removal permanent save() still needs to be called
*/
void remove(int tags = AllTags);
void strip(int tags = AllTags);
private:
File(const File &);