]> granicus.if.org Git - taglib/commitdiff
Tabs be gone
authorScott Wheeler <scott@directededge.com>
Sun, 26 Jun 2011 19:37:01 +0000 (21:37 +0200)
committerScott Wheeler <scott@directededge.com>
Sun, 26 Jun 2011 19:37:01 +0000 (21:37 +0200)
taglib/flac/flacproperties.h
taglib/mpeg/id3v2/frames/attachedpictureframe.cpp
taglib/mpeg/id3v2/id3v2framefactory.cpp
taglib/mpeg/mpegfile.cpp
taglib/ogg/xiphcomment.cpp
taglib/riff/aiff/aiffproperties.cpp
taglib/riff/aiff/aiffproperties.h
taglib/riff/wav/wavproperties.cpp
taglib/riff/wav/wavproperties.h
taglib/toolkit/tbytevector.h
taglib/toolkit/tfilestream.cpp

index 5bba6417b0ddfe38574c84bf31654f3d71b7864f..a8a02e7cd100c0c36a82eafbb5606eef007f1551 100644 (file)
@@ -79,7 +79,7 @@ namespace TagLib {
 
       /*!
        * Returns the MD5 signature of the uncompressed audio stream as read
-          * from the stream info header header.
+       * from the stream info header header.
        */
       ByteVector signature() const;
 
index c31e10767c052c078260d6e339833c5feb54032a..86f8e355582c0a6f2a22bd506077a287606f3fc1 100644 (file)
@@ -136,7 +136,7 @@ void AttachedPictureFrame::parseFields(const ByteVector &data)
   int pos = 1;
 
   d->mimeType = readStringField(data, String::Latin1, &pos);
-  /* Now we need at least two more bytes available */  
+  /* Now we need at least two more bytes available */
   if (uint(pos) + 1 >= data.size()) {
     debug("Truncated picture frame.");
     return;
index e185083307eb363969f95f53ab657baaf74b0274..6bd8b204bf8a149988346e35d3734d9eda7064f6 100644 (file)
@@ -185,13 +185,13 @@ Frame *FrameFactory::createFrame(const ByteVector &origData, Header *tagHeader)
 
   // ID3v2.2 Attached Picture
 
-       if(frameID == "PIC") {
+  if(frameID == "PIC") {
     AttachedPictureFrame *f = new AttachedPictureFrameV22(data, header);
     d->setTextEncoding(f);
     return f;
   }
 
-       // Relative Volume Adjustment (frames 4.11)
+  // Relative Volume Adjustment (frames 4.11)
 
   if(frameID == "RVA2")
     return new RelativeVolumeFrame(data, header);
index 9786c99a06f7e72a7c45bd090d8bd329c0b3c336..a3bad823bd48a75cad8f8ac810241916df2fa465 100644 (file)
@@ -201,7 +201,7 @@ bool MPEG::File::save(int tags, bool stripOthers, int id3v2Version)
       // APE tag location has changed, update if it exists
 
       if(APETag())
-       findAPE();
+        findAPE();
     }
     else if(stripOthers)
       success = strip(ID3v2, false) && success;
@@ -239,9 +239,10 @@ bool MPEG::File::save(int tags, bool stripOthers, int id3v2Version)
       else {
         seek(0, End);
         d->APELocation = tell();
-       d->APEFooterLocation = d->APELocation
-         + d->tag.access<APE::Tag>(APEIndex, false)->footer()->completeTagSize()
-         - APE::Footer::size();
+        APE::Tag *apeTag = d->tag.access<APE::Tag>(APEIndex, false);
+        d->APEFooterLocation = d->APELocation
+                               + apeTag->footer()->completeTagSize()
+                               - APE::Footer::size();
         writeBlock(APETag()->render());
         d->APEOriginalSize = APETag()->footer()->completeTagSize();
         d->hasAPE = true;
@@ -587,7 +588,7 @@ void MPEG::File::findAPE()
       seek(d->APEFooterLocation);
       APE::Footer footer(readBlock(APE::Footer::size()));
       d->APELocation = d->APEFooterLocation - footer.completeTagSize()
-       + APE::Footer::size();
+                       + APE::Footer::size();
       return;
     }
   }
index e7e8fa915a8ede594548012dd6de92bddbc29ab5..c26391a91b2a366f74229e58a38d36343349301d 100644 (file)
@@ -285,7 +285,7 @@ void Ogg::XiphComment::parse(const ByteVector &data)
   // The first thing in the comment data is the vendor ID length, followed by a
   // UTF8 string with the vendor ID.
 
-  int pos = 0;
+  uint pos = 0;
 
   int vendorLength = data.mid(0, 4).toUInt(false);
   pos += 4;
index c7cbaa34924bf88d61fa6f981fc99479bef12ee4..4a1a3001388fdd976e5446103ca7fbf2f375f27a 100644 (file)
@@ -44,7 +44,7 @@ static double ConvertFromIeeeExtended(unsigned char *bytes)
   double f;
   int expon;
   unsigned long hiMant, loMant;
-    
+
   expon  = ((bytes[0] & 0x7F) << 8) | (bytes[1] & 0xFF);
 
   hiMant = ((unsigned long)(bytes[2] & 0xFF) << 24) |
@@ -141,7 +141,7 @@ int RIFF::AIFF::Properties::sampleWidth() const
 
 uint RIFF::AIFF::Properties::sampleFrames() const
 {
-       return d->sampleFrames;
+  return d->sampleFrames;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
index ceefe32ea18ba8a85916c6883715a84965852c48..68e90b792c9bf83f9cb5a10a40786773571c0c3e 100644 (file)
@@ -46,35 +46,35 @@ namespace TagLib {
       class TAGLIB_EXPORT Properties : public AudioProperties
       {
       public:
-       /*!
-        * Create an instance of AIFF::Properties with the data read from the
-        * ByteVector \a data.
-        */
-       Properties(const ByteVector &data, ReadStyle style);
+        /*!
+         * Create an instance of AIFF::Properties with the data read from the
+         * ByteVector \a data.
+         */
+        Properties(const ByteVector &data, ReadStyle style);
 
-       /*!
-        * Destroys this AIFF::Properties instance.
-        */
-       virtual ~Properties();
+        /*!
+         * Destroys this AIFF::Properties instance.
+         */
+        virtual ~Properties();
 
-       // Reimplementations.
+        // Reimplementations.
 
-       virtual int length() const;
-       virtual int bitrate() const;
-       virtual int sampleRate() const;
-       virtual int channels() const;
+        virtual int length() const;
+        virtual int bitrate() const;
+        virtual int sampleRate() const;
+        virtual int channels() const;
 
-       int sampleWidth() const;
-       uint sampleFrames() const;
+        int sampleWidth() const;
+        uint sampleFrames() const;
 
       private:
-       Properties(const Properties &);
-       Properties &operator=(const Properties &);
+        Properties(const Properties &);
+        Properties &operator=(const Properties &);
 
-       void read(const ByteVector &data);
+        void read(const ByteVector &data);
 
-       class PropertiesPrivate;
-       PropertiesPrivate *d;
+        class PropertiesPrivate;
+        PropertiesPrivate *d;
       };
     }
   }
index 6c3e2f41656d36846a050daee4f3c4a30f475d09..10d10eca58b8dcfbbd3ff0211a5b4fae007303b7 100644 (file)
@@ -106,7 +106,7 @@ int RIFF::WAV::Properties::sampleWidth() const
 
 uint RIFF::WAV::Properties::sampleFrames() const
 {
-       return d->sampleFrames;
+  return d->sampleFrames;
 }
 
 ////////////////////////////////////////////////////////////////////////////////
index e75ec0fbb44a6a174cde31775641759dae00b031..2023f5392caaf746c99cd841036f4cbae751886c 100644 (file)
@@ -49,41 +49,41 @@ namespace TagLib {
       class TAGLIB_EXPORT Properties : public AudioProperties
       {
       public:
-       /*!
-        * Create an instance of WAV::Properties with the data read from the
-        * ByteVector \a data.
-        */
-       Properties(const ByteVector &data, ReadStyle style);
+        /*!
+         * Create an instance of WAV::Properties with the data read from the
+         * ByteVector \a data.
+         */
+        Properties(const ByteVector &data, ReadStyle style);
 
-       /*!
-        * Create an instance of WAV::Properties with the data read from the
-        * ByteVector \a data and the length calculated using \a streamLength.
-        */
-       Properties(const ByteVector &data, uint streamLength, ReadStyle style);
+        /*!
+         * Create an instance of WAV::Properties with the data read from the
+         * ByteVector \a data and the length calculated using \a streamLength.
+         */
+        Properties(const ByteVector &data, uint streamLength, ReadStyle style);
 
-       /*!
-        * Destroys this WAV::Properties instance.
-        */
-       virtual ~Properties();
+        /*!
+         * Destroys this WAV::Properties instance.
+         */
+        virtual ~Properties();
 
-       // Reimplementations.
+        // Reimplementations.
 
-       virtual int length() const;
-       virtual int bitrate() const;
-       virtual int sampleRate() const;
-       virtual int channels() const;
+        virtual int length() const;
+        virtual int bitrate() const;
+        virtual int sampleRate() const;
+        virtual int channels() const;
 
-       int sampleWidth() const;
-       uint sampleFrames() const;
+        int sampleWidth() const;
+        uint sampleFrames() const;
 
       private:
-       Properties(const Properties &);
-       Properties &operator=(const Properties &);
+        Properties(const Properties &);
+        Properties &operator=(const Properties &);
 
-       void read(const ByteVector &data);
+        void read(const ByteVector &data);
 
-       class PropertiesPrivate;
-       PropertiesPrivate *d;
+        class PropertiesPrivate;
+        PropertiesPrivate *d;
       };
     }
   }
index b7fffddedce23c9354a824c4d9352558f38625c3..af3420f5d8ad9992ca1c09da227b12fb12fbd994 100644 (file)
@@ -397,8 +397,8 @@ namespace TagLib {
     static ByteVector null;
 
     /*!
-          * Returns a hex-encoded copy of the byte vector.
-          */
+     * Returns a hex-encoded copy of the byte vector.
+     */
     ByteVector toHex() const;
 
   protected:
index 45e4cdde913d1da1956a10a5e626b4c96e654c51..e2aebae391c36bd8ff63c16f100174ea2e284845 100644 (file)
@@ -100,7 +100,7 @@ FileStream::FileStreamPrivate::FileStreamPrivate(FileName fileName, bool openRea
         readOnly = false;
       else
         file = _wfopen(name, L"rb");
-       }
+    }
 
     if(file)
       return;