]> granicus.if.org Git - taglib/commitdiff
Remove trailing whitespace
authorBirunthan Mohanathas <birunthan@mohanathas.com>
Thu, 19 Apr 2012 10:09:45 +0000 (13:09 +0300)
committerBirunthan Mohanathas <birunthan@mohanathas.com>
Thu, 19 Apr 2012 10:09:45 +0000 (13:09 +0300)
34 files changed:
bindings/c/tag_c.h
taglib/ape/apeitem.cpp
taglib/asf/asfattribute.h
taglib/asf/asffile.cpp
taglib/asf/asfproperties.cpp
taglib/asf/asfproperties.h
taglib/asf/asftag.h
taglib/fileref.cpp
taglib/flac/flacfile.h
taglib/flac/flacmetadatablock.cpp
taglib/flac/flacpicture.cpp
taglib/flac/flacunknownmetadatablock.cpp
taglib/it/itfile.cpp
taglib/it/itproperties.h
taglib/mod/modproperties.cpp
taglib/mod/modproperties.h
taglib/mod/modtag.h
taglib/mpeg/id3v2/frames/privateframe.cpp
taglib/ogg/oggfile.cpp
taglib/ogg/oggpage.cpp
taglib/ogg/oggpage.h
taglib/riff/rifffile.cpp
taglib/s3m/s3mfile.cpp
taglib/s3m/s3mproperties.cpp
taglib/s3m/s3mproperties.h
taglib/toolkit/tbytevector.cpp
taglib/wavpack/wavpackproperties.cpp
taglib/xm/xmproperties.cpp
taglib/xm/xmproperties.h
tests/test_asf.cpp
tests/test_it.cpp
tests/test_mod.cpp
tests/test_s3m.cpp
tests/test_xm.cpp

index 3be146d07fd6de88743ce798dc9907855661b3d5..ab5dd20207d45595d40dd245e9d3171d1a86dd9b 100644 (file)
@@ -104,7 +104,7 @@ typedef enum {
 /*!
  * Creates a TagLib file based on \a filename.  TagLib will try to guess the file
  * type.
- * 
+ *
  * \returns NULL if the file type cannot be determined or the file cannot
  * be opened.
  */
index 58278b6b3d5123b8e49befc5158bbfc005913d23..9d9647ec3d7cb9eb13b308f898ae3aebd6ea94d9 100644 (file)
@@ -71,7 +71,7 @@ APE::Item::Item(const String &key, const ByteVector &value, bool binary)
     d->value = value;
   }
   else
-    d->text.append(value);       
+    d->text.append(value);
 }
 
 APE::Item::Item(const Item &item)
@@ -172,7 +172,7 @@ int APE::Item::size() const
     case Text:
       if(d->text.size()) {
         StringList::ConstIterator it = d->text.begin();
-                 
+
         result += it->data(String::UTF8).size();
         it++;
         for(; it != d->text.end(); ++it)
index 561869997446c02e74466f3cc803ca7b97ab94d2..54eb0c7d104a07bcb3005e4276741e84926dfc27 100644 (file)
@@ -70,7 +70,7 @@ namespace TagLib
       /*!
        * Constructs an attribute with \a key and a BytesType \a value.
        */
-      Attribute(const ByteVector &value);      
+      Attribute(const ByteVector &value);
 
       /*!
        * Constructs an attribute with \a key and a Picture \a value.
index 2edff441e7eee157acb592481809391ab769cbfd..e2823c7e98affb9f829b2bccaed86d15a2bdb0ff 100644 (file)
@@ -368,14 +368,14 @@ ByteVector ASF::File::HeaderExtensionObject::render(ASF::File *file)
 // public members
 ////////////////////////////////////////////////////////////////////////////////
 
-ASF::File::File(FileName file, bool readProperties, Properties::ReadStyle propertiesStyle) 
+ASF::File::File(FileName file, bool readProperties, Properties::ReadStyle propertiesStyle)
   : TagLib::File(file)
 {
   d = new FilePrivate;
   read(readProperties, propertiesStyle);
 }
 
-ASF::File::File(IOStream *stream, bool readProperties, Properties::ReadStyle propertiesStyle) 
+ASF::File::File(IOStream *stream, bool readProperties, Properties::ReadStyle propertiesStyle)
   : TagLib::File(stream)
 {
   d = new FilePrivate;
index 0857f0c3b83ee8e7fa605fd14d517c73747af319..835cbdf9891b3769d520c9dbfc195a5cb3fda714 100644 (file)
@@ -56,7 +56,7 @@ ASF::Properties::Properties() : AudioProperties(AudioProperties::Average)
 ASF::Properties::~Properties()
 {
   if(d)
-    delete d;  
+    delete d;
 }
 
 int ASF::Properties::length() const
@@ -77,7 +77,7 @@ int ASF::Properties::sampleRate() const
 int ASF::Properties::channels() const
 {
   return d->channels;
-} 
+}
 
 bool ASF::Properties::isEncrypted() const
 {
index ca7b581d03939916f2d5eb8edc57430ec39866c7..95730d8eaf6c423c6da883a02dd0301e4dccf244 100644 (file)
@@ -73,4 +73,4 @@ namespace TagLib {
 
 }
 
-#endif 
+#endif
index a6c49df581d44bbb26e2fad694e89400477e2aa1..6b2d2bf35925547dcd910ded4a61d0911f08a1d6 100644 (file)
@@ -120,17 +120,17 @@ namespace TagLib {
       virtual void setComment(const String &s);
 
       /*!
-       * Sets the rating to \a s. 
+       * Sets the rating to \a s.
        */
       virtual void setRating(const String &s);
 
       /*!
-       * Sets the copyright to \a s. 
+       * Sets the copyright to \a s.
        */
       virtual void setCopyright(const String &s);
 
       /*!
-       * Sets the genre to \a s. 
+       * Sets the genre to \a s.
        */
       virtual void setGenre(const String &s);
 
index 2e5ceb269a4aed7166a1d3f3b339f6bcc72eb746..5c42ed4c1e6527603fb9547a0239fe9ec2c6b946 100644 (file)
@@ -1,7 +1,7 @@
 /***************************************************************************
     copyright            : (C) 2002 - 2008 by Scott Wheeler
     email                : wheeler@kde.org
-    
+
     copyright            : (C) 2010 by Alex Novichkov
     email                : novichko@atnet.ru
                            (added APE file support)
index b2ecce222540ff003c2d9aa6b13133b212a1fdd3..31dfebd78f05d2ee7c029e34421ee91c7e6bd4a5 100644 (file)
@@ -218,7 +218,7 @@ namespace TagLib {
        * Returns a list of pictures attached to the FLAC file.
        */
       List<Picture *> pictureList();
-      
+
       /*!
        * Removes an attached picture. If \a del is true the picture's memory
        * will be freed; if it is false, it must be deleted by the user.
index 0671fc3a3afff7578126cd557eef21edc5862de9..7d161c27de32cf768b4bde479c90c4d4db99f63c 100644 (file)
@@ -33,7 +33,7 @@
 
 using namespace TagLib;
 
-class FLAC::MetadataBlock::MetadataBlockPrivate 
+class FLAC::MetadataBlock::MetadataBlockPrivate
 {
 public:
   MetadataBlockPrivate() {}
index 38967199429a04001e983dcd52fbd8f279153289..36019248a67d3f045c490fea137209808784c8bd 100644 (file)
@@ -33,7 +33,7 @@
 
 using namespace TagLib;
 
-class FLAC::Picture::PicturePrivate 
+class FLAC::Picture::PicturePrivate
 {
 public:
   PicturePrivate() :
@@ -117,7 +117,7 @@ bool FLAC::Picture::parse(const ByteVector &data)
   }
   d->data = data.mid(pos, dataLength);
 
-  return true;  
+  return true;
 }
 
 ByteVector FLAC::Picture::render() const
index 96e3447f7c023388518d693eec985d1990c936fc..1265affbb3b9d29cb3df72857d55c2fe211ab0db 100644 (file)
@@ -34,7 +34,7 @@
 
 using namespace TagLib;
 
-class FLAC::UnknownMetadataBlock::UnknownMetadataBlockPrivate 
+class FLAC::UnknownMetadataBlock::UnknownMetadataBlockPrivate
 {
 public:
   UnknownMetadataBlockPrivate() : code(0) {}
index dc03b60ad9e0ebddcd2f7f374a1b7e2337528f60..51b57b0ce86c6a64a8e368f7df62f38edec6d207 100644 (file)
@@ -125,7 +125,7 @@ bool IT::File::save()
     ulong sampleOffset = 0;
     if(!readU32L(sampleOffset))
       return false;
-    
+
     seek(sampleOffset + 20);
 
     if((i + instrumentCount) < lines.size())
@@ -206,7 +206,7 @@ void IT::File::read(bool)
   READ_U16L_AS(length);
   READ_U16L_AS(instrumentCount);
   READ_U16L_AS(sampleCount);
-  
+
   d->properties.setInstrumentCount(instrumentCount);
   d->properties.setSampleCount(sampleCount);
   READ_U16L(d->properties.setPatternCount);
@@ -255,7 +255,7 @@ void IT::File::read(bool)
         ++channels;
   }
   d->properties.setChannels(channels);
-  
+
   // real length might be shorter because of skips and terminator
   ushort realLength = 0;
   for(ushort i = 0; i < length; ++ i) {
@@ -287,11 +287,11 @@ void IT::File::read(bool)
     READ_STRING_AS(instrumentName, 26);
     comment.append(instrumentName);
   }
-  
+
   for(ushort i = 0; i < sampleCount; ++ i) {
     seek(192L + length + ((long)instrumentCount << 2) + ((long)i << 2));
     READ_U32L_AS(sampleOffset);
-    
+
     seek(sampleOffset);
 
     ByteVector sampleMagic = readBlock(4);
@@ -317,7 +317,7 @@ void IT::File::read(bool)
     READ_BYTE_AS(vibratoRate);
     READ_BYTE_AS(vibratoType);
     */
-    
+
     comment.append(sampleName);
   }
 
index 7e0fb530ee4ea2d84b42b34671b3e6802b47fa28..da2a7c4fb8a900de522d8f0faa6c08a122d751c0 100644 (file)
@@ -50,7 +50,7 @@ namespace TagLib {
 
       Properties(AudioProperties::ReadStyle propertiesStyle);
       virtual ~Properties();
-      
+
       int length()     const;
       int bitrate()    const;
       int sampleRate() const;
index 479034546757fa0dc2145fe32be971b7374f66ba..c98714898c9b2e0ac2e93ecf1a1605aee8ed62f6 100644 (file)
@@ -33,7 +33,7 @@ public:
     lengthInPatterns(0)
   {
   }
-  
+
   int   channels;
   uint  instrumentCount;
   uchar lengthInPatterns;
index 1e04baafe3ebcccdb9511efcbf94852d3172521e..d50353a480fb6013c0bed3ccf24c0b082ef5b382 100644 (file)
@@ -34,7 +34,7 @@ namespace TagLib {
     public:
       Properties(AudioProperties::ReadStyle propertiesStyle);
       virtual ~Properties();
-      
+
       int length() const;
       int bitrate() const;
       int sampleRate() const;
index c1a74b1093d43ea33f45a73ffdcff2503cd72ec3..f33e33f291c19a97a8f357ce39e1f881de2f7796 100644 (file)
@@ -150,10 +150,10 @@ namespace TagLib {
       /*!
        * Sets the tracker name to \a trackerName.  If \a trackerName is
        * String::null then this value will be cleared.
-       * 
+       *
        * Note that only XM files support this tag.  Setting the
        * tracker name for other module file formats will be ignored.
-       * 
+       *
        * The length of this tag is limited to 20 characters (1 character
        * = 1 byte).
        */
index f2d2a03c7b287cff56573e9be4dfc90a801bb359..24ee0f350c1135053176b343772a19c8547ea39e 100644 (file)
@@ -98,7 +98,7 @@ void PrivateFrame::parseFields(const ByteVector &data)
   }
 
   // Owner identifier is assumed to be Latin1
-  
+
   const int byteAlign =  1;
   const int endOfOwner = data.find(textDelimiter(String::Latin1), 0, byteAlign);
 
index 01bb5c9d190b383be10ee9aceb2d513248224dbc..cc30f9ce19eb838936d506e36857a44df772d41d 100644 (file)
@@ -281,8 +281,8 @@ void Ogg::File::writePageGroup(const List<int> &thePageGroup)
     return;
 
 
-  // pages in the pageGroup and packets must be equivalent 
-  // (originalSize and size of packets would not work together), 
+  // pages in the pageGroup and packets must be equivalent
+  // (originalSize and size of packets would not work together),
   // therefore we sometimes have to add pages to the group
   List<int> pageGroup(thePageGroup);
   while (!d->pages[pageGroup.back()]->header()->lastPacketCompleted()) {
@@ -341,7 +341,7 @@ void Ogg::File::writePageGroup(const List<int> &thePageGroup)
 
   if (pages.back()->header()->pageSequenceNumber() != pageGroup.back()) {
 
-    // TODO: change the internal data structure so that we don't need to hold the 
+    // TODO: change the internal data structure so that we don't need to hold the
     // complete file in memory (is unavoidable at the moment)
 
     // read the complete stream
index 732f01dda8e98426762b4a0719c3cf2434feff92..e5f767ec1a85240fadedd669b9bca81f5781d9c2 100644 (file)
@@ -116,9 +116,9 @@ Ogg::Page::ContainsPacketFlags Ogg::Page::containsPacket(int index) const
     flags = ContainsPacketFlags(flags | CompletePacket);
   }
 
-  // Or if there is more than one page and the page is 
-  // (a) the first page and it's complete or 
-  // (b) the last page and it's complete or 
+  // Or if there is more than one page and the page is
+  // (a) the first page and it's complete or
+  // (b) the last page and it's complete or
   // (c) a page in the middle.
   else if(packetCount() > 1 &&
           ((flags & BeginsWithPacket && !d->header.firstPacketContinued()) ||
@@ -266,7 +266,7 @@ List<Ogg::Page *> Ogg::Page::paginate(const ByteVectorList &packets,
       }
 
       Page *p = new Page(packetList, streamSerialNumber, firstPage+pageIndex, continued,
-                         lastPacketInList ? lastPacketCompleted : true, 
+                         lastPacketInList ? lastPacketCompleted : true,
                          isVeryLastPacket);
       pageIndex++;
 
index a8d5c1a3d4dcc38d17cb5514ce649b084433fe2e..e9f4840c52e2fe251ae3bfee2e39b26ac60a48ff 100644 (file)
@@ -70,9 +70,9 @@ namespace TagLib {
        */
       const PageHeader *header() const;
 
-      /*! 
+      /*!
        * Returns a copy of the page with \a sequenceNumber set as sequence number.
-       * 
+       *
        * \see header()
        * \see PageHeader::setPageSequenceNumber()
        */
index 0e70dd5e463a46b8e33f958176d083e3a9ac2652..df3b36635adfeae375d2728a5020b139457e1fdf 100644 (file)
@@ -189,7 +189,7 @@ void RIFF::File::setChunkData(const ByteVector &name, const ByteVector &data)
     d->chunks[i].padding = 1;
     offset++;
   }
-  
+
   Chunk chunk;
   chunk.name = name;
   chunk.size = data.size();
index b90bb5433f48ffa0b1b71ea3eaf74ac0ff14f6b3..7ffdf910b726934dff64f15e0d62c52353747fbf 100644 (file)
@@ -118,7 +118,7 @@ bool S3M::File::save()
   }
 
   seek(channels, Current);
-  
+
   StringList lines = d->tag.comment().split("\n");
   // write comment as sample names:
   for(ushort i = 0; i < sampleCount; ++ i) {
@@ -189,7 +189,7 @@ void S3M::File::read(bool)
     if(setting != 0xff) ++ channels;
   }
   d->properties.setChannels(channels);
-  
+
   seek(96);
   ushort realLength = 0;
   for(ushort i = 0; i < length; ++ i) {
index 8b50a60b545f84ab08becf9851c917df75a45aae..47b305623226a9239939267eed2951e384225c94 100644 (file)
@@ -42,7 +42,7 @@ public:
     bpmSpeed(0)
   {
   }
-  
+
   ushort lengthInPatterns;
   int    channels;
   bool   stereo;
index 0c08866873850d56cc90813c3643fa3b302c5677..6e9f1d29381e89ff0a1f85fce98a5cc31cf7777e 100644 (file)
@@ -43,7 +43,7 @@ namespace TagLib {
 
       Properties(AudioProperties::ReadStyle propertiesStyle);
       virtual ~Properties();
-      
+
       int length()     const;
       int bitrate()    const;
       int sampleRate() const;
index 7f14ca6795e32d36caa56a10bb11ceb3b4d82b1d..59e3a9ed30a3b579b262a280a97c43339872ff8b 100644 (file)
@@ -481,7 +481,7 @@ ByteVector &ByteVector::replace(const ByteVector &pattern, const ByteVector &wit
     target += withSize;
     offset += chunkSize + patternSize;
   }
-  
+
   // replace private data:
   if(d->deref())
     delete d;
index 53c6d7635fe92fa5c8f433e154ec1261823b9db7..7b3faa1a0c0e091e3759375d5f93566697d22142 100644 (file)
@@ -161,7 +161,7 @@ void WavPack::Properties::read()
   unsigned int samples = d->data.mid(12, 4).toUInt(false);
   if(samples == ~0u) {
     if(d->file && d->style != Fast) {
-      samples = seekFinalIndex(); 
+      samples = seekFinalIndex();
     }
     else {
       samples = 0;
index e0b489acff2293b33a4ba3016d8be950e7595dd0..8c975ed8389fb452938ac68e1cb98c904c58149a 100644 (file)
@@ -40,7 +40,7 @@ public:
     bpmSpeed(0)
   {
   }
-  
+
   ushort lengthInPatterns;
   int    channels;
   ushort version;
@@ -57,7 +57,7 @@ XM::Properties::Properties(AudioProperties::ReadStyle propertiesStyle) :
   AudioProperties(propertiesStyle),
   d(new PropertiesPrivate)
 {
-}     
+}
 
 XM::Properties::~Properties()
 {
index 1bb89671945588b4e7329e62428006cdc8cb0949..9b6624a77c52bbb464fdfa0e44da322ece740ee8 100644 (file)
@@ -38,7 +38,7 @@ namespace TagLib {
 
       Properties(AudioProperties::ReadStyle propertiesStyle);
       virtual ~Properties();
-      
+
       int length()     const;
       int bitrate()    const;
       int sampleRate() const;
index bcebc164734071e971a31daa5322b06974ad6755..51981342b549b1fb5f865163397c0457f03a6b71 100644 (file)
@@ -164,7 +164,7 @@ public:
     f = new ASF::File(newname.c_str());
     ASF::AttributeList values2 = f->tag()->attributeListMap()["WM/Picture"];
     CPPUNIT_ASSERT_EQUAL(TagLib::uint(1), values2.size());
-    ASF::Attribute attr2 = values2.front(); 
+    ASF::Attribute attr2 = values2.front();
     ASF::Picture picture2 = attr2.toPicture();
     CPPUNIT_ASSERT(picture2.isValid());
     CPPUNIT_ASSERT_EQUAL(String("image/jpeg"), picture2.mimeType());
index 167aa6ef401879298776e19647827e572f5ec394..53d8ea0eb86c1b2383b68f9b54a78376ccd43e67 100644 (file)
@@ -100,7 +100,7 @@ private:
 
     IT::Properties *p = file.audioProperties();
     Mod::Tag *t = file.tag();
-    
+
     CPPUNIT_ASSERT(0 != p);
     CPPUNIT_ASSERT(0 != t);
 
index a3919d7eb24f3511f8bddea94c2215e5f7d0ed79..05657c1318bc8f80cfee8f45bae5be1230758388 100644 (file)
@@ -102,7 +102,7 @@ private:
 
     Mod::Properties *p = file.audioProperties();
     Mod::Tag *t = file.tag();
-    
+
     CPPUNIT_ASSERT(0 != p);
     CPPUNIT_ASSERT(0 != t);
 
index e25666267edc793ee23d2ca6ad628bfb0e1f80a0..a6ecc084c8a55445aa99efa0a2569b2ec5840531 100644 (file)
@@ -90,7 +90,7 @@ private:
 
     S3M::Properties *p = file.audioProperties();
     Mod::Tag *t = file.tag();
-    
+
     CPPUNIT_ASSERT(0 != p);
     CPPUNIT_ASSERT(0 != t);
 
index c6af369ecb885de3b80507b23cbd04bf9b217824..70b3967ee7329b426be680bd523ab926d4746228 100644 (file)
@@ -122,7 +122,7 @@ public:
 
     XM::Properties *p = file.audioProperties();
     Mod::Tag *t = file.tag();
-    
+
     CPPUNIT_ASSERT(0 != p);
     CPPUNIT_ASSERT(0 != t);
 
@@ -168,7 +168,7 @@ private:
 
     XM::Properties *p = file.audioProperties();
     Mod::Tag *t = file.tag();
-    
+
     CPPUNIT_ASSERT(0 != p);
     CPPUNIT_ASSERT(0 != t);
 
@@ -193,7 +193,7 @@ private:
     CPPUNIT_ASSERT_EQUAL(0U, t->track());
     CPPUNIT_ASSERT_EQUAL(trackerName, t->trackerName());
   }
-  
+
   void testWriteTags(const String &comment)
   {
     ScopedFileCopy copy("test", ".xm");