mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
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:
parent
adc7c9c841
commit
458b2b3335
@ -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
|
||||
|
@ -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 &);
|
||||
|
@ -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;
|
||||
|
@ -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 &);
|
||||
|
@ -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;
|
||||
|
@ -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 &);
|
||||
|
Loading…
Reference in New Issue
Block a user