]> granicus.if.org Git - taglib/commitdiff
Restore ABI changed in pull request #60
authorTsuda kageyu <tsuda.kageyu@gmail.com>
Wed, 17 Apr 2013 03:28:00 +0000 (12:28 +0900)
committerTsuda kageyu <tsuda.kageyu@gmail.com>
Wed, 17 Apr 2013 03:28:00 +0000 (12:28 +0900)
taglib/riff/rifffile.cpp
taglib/riff/rifffile.h

index a38e1c401b57c84d15a803266478023bd3cc782a..20eec5ffe08250c6b0adc05e191b5173f059b05e 100644 (file)
@@ -158,6 +158,11 @@ void RIFF::File::setChunkData(uint i, const ByteVector &data)
     d->chunks[i].offset = d->chunks[i-1].offset + 8 + d->chunks[i-1].size + d->chunks[i-1].padding;
 }
 
+void RIFF::File::setChunkData(const ByteVector &name, const ByteVector &data)
+{
+  setChunkData(name, data, false);
+}
+
 void RIFF::File::setChunkData(const ByteVector &name, const ByteVector &data, bool alwaysCreate)
 {
   if(d->chunks.size() == 0) {
index 274549ae0246eb755f93221b8a82569440a74baf..6b8fe197fb5823993e3d8e1da1ba012dafa3da09 100644 (file)
@@ -102,17 +102,27 @@ namespace TagLib {
        */
       void setChunkData(uint i, const ByteVector &data);
 
+      /*!
+       * Sets the data for the chunk \a name to \a data.  If a chunk with the
+       * given name already exists it will be overwritten, otherwise it will be
+       * created after the existing chunks.
+       *
+       * \warning This will update the file immediately.
+       */
+      void setChunkData(const ByteVector &name, const ByteVector &data);
+
       /*!
        * Sets the data for the chunk \a name to \a data.  If a chunk with the
        * given name already exists it will be overwritten, otherwise it will be
        * created after the existing chunks.
        *
        * \note If \a alwaysCreate is true, a new chunk is created regardless of 
-       * existence of chunk \a name. It should be used for only "LIST" chunks. 
+       * whether or not the chunk \a name exists. It should only be used for 
+       * "LIST" chunks. 
        *
        * \warning This will update the file immediately.
        */
-      void setChunkData(const ByteVector &name, const ByteVector &data, bool alwaysCreate = false);
+      void setChunkData(const ByteVector &name, const ByteVector &data, bool alwaysCreate);
 
       /*!
        * Removes the specified chunk.