]> granicus.if.org Git - taglib/commitdiff
Use '0' here instead of 'NULL'
authorScott Wheeler <scott@directededge.com>
Tue, 3 Jul 2012 10:26:20 +0000 (12:26 +0200)
committerScott Wheeler <scott@directededge.com>
Tue, 3 Jul 2012 10:26:20 +0000 (12:26 +0200)
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

taglib/mpeg/id3v2/id3v2tag.cpp

index c6fe7b746f08375ee2a31e85f35a67ee74de59d7..662fd1593a5093086b3e2725bb154ba1485610fe 100644 (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")