Use '0' here instead of 'NULL'

0 is used throughout the rest of the TagLib source, and generally
preferred in C++:

http://www2.research.att.com/~bs/bs_faq2.html#null
This commit is contained in:
Scott Wheeler 2012-07-03 12:26:20 +02:00
parent f429d6f406
commit 7c4c455a40

View File

@ -355,7 +355,7 @@ void ID3v2::Tag::removeUnsupportedProperties(const StringList &properties)
// delete all unknown frames of given type
FrameList l = frameList(id);
for(FrameList::ConstIterator fit = l.begin(); fit != l.end(); fit++)
if (dynamic_cast<const UnknownFrame *>(*fit) != NULL)
if (dynamic_cast<const UnknownFrame *>(*fit) != 0)
removeFrame(*fit);
} else if(it->size() == 4){
ByteVector id = it->data(String::Latin1);
@ -365,7 +365,7 @@ void ID3v2::Tag::removeUnsupportedProperties(const StringList &properties)
if(it->size() <= 5)
continue; // invalid specification
String description = it->substr(5);
Frame *frame = NULL;
Frame *frame = 0;
if(id == "TXXX")
frame = UserTextIdentificationFrame::find(this, description);
else if(id == "WXXX")