]> granicus.if.org Git - taglib/commitdiff
WAV: Remove unused formal parameters.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Fri, 31 Jul 2015 15:37:31 +0000 (00:37 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Fri, 31 Jul 2015 15:37:31 +0000 (00:37 +0900)
taglib/riff/wav/wavfile.cpp
taglib/riff/wav/wavfile.h

index c1c2decbb94779b92841b9054c8c21ffabf5e655..e7b8dc8a8c7709edb6ee96c702aecd7885d22a85 100644 (file)
@@ -70,20 +70,20 @@ public:
 // public members
 ////////////////////////////////////////////////////////////////////////////////
 
-RIFF::WAV::File::File(FileName file, bool readProperties,
-                       Properties::ReadStyle propertiesStyle) : RIFF::File(file, LittleEndian)
+RIFF::WAV::File::File(FileName file, bool readProperties, Properties::ReadStyle) :
+  RIFF::File(file, LittleEndian),
+  d(new FilePrivate())
 {
-  d = new FilePrivate;
   if(isOpen())
-    read(readProperties, propertiesStyle);
+    read(readProperties);
 }
 
-RIFF::WAV::File::File(IOStream *stream, bool readProperties,
-                       Properties::ReadStyle propertiesStyle) : RIFF::File(stream, LittleEndian)
+RIFF::WAV::File::File(IOStream *stream, bool readProperties, Properties::ReadStyle) :
+  RIFF::File(stream, LittleEndian),
+  d(new FilePrivate())
 {
-  d = new FilePrivate;
   if(isOpen())
-    read(readProperties, propertiesStyle);
+    read(readProperties);
 }
 
 RIFF::WAV::File::~File()
@@ -189,7 +189,7 @@ bool RIFF::WAV::File::hasInfoTag() const
 // private members
 ////////////////////////////////////////////////////////////////////////////////
 
-void RIFF::WAV::File::read(bool readProperties, Properties::ReadStyle propertiesStyle)
+void RIFF::WAV::File::read(bool readProperties)
 {
   for(uint i = 0; i < chunkCount(); ++i) {
     const ByteVector name = chunkName(i);
@@ -218,13 +218,13 @@ void RIFF::WAV::File::read(bool readProperties, Properties::ReadStyle properties
   }
 
   if(!d->tag[ID3v2Index])
-    d->tag.set(ID3v2Index, new ID3v2::Tag);
+    d->tag.set(ID3v2Index, new ID3v2::Tag());
 
   if(!d->tag[InfoIndex])
-    d->tag.set(InfoIndex, new RIFF::Info::Tag);
+    d->tag.set(InfoIndex, new RIFF::Info::Tag());
 
   if(readProperties)
-    d->properties = new Properties(this, propertiesStyle);
+    d->properties = new Properties(this, Properties::Average);
 }
 
 void RIFF::WAV::File::strip(TagTypes tags)
index 5cafe76f6de4a4f3961bdad46d3a1a4883e47936..99bfda1796d4ed5d0eb76b92acc248d3e80d52ce 100644 (file)
@@ -170,7 +170,7 @@ namespace TagLib {
         File(const File &);
         File &operator=(const File &);
 
-        void read(bool readProperties, Properties::ReadStyle propertiesStyle);
+        void read(bool readProperties);
 
         void strip(TagTypes tags);