]> granicus.if.org Git - taglib/commitdiff
Tabs to spaces
authorBirunthan Mohanathas <birunthan@mohanathas.com>
Thu, 19 Apr 2012 10:04:42 +0000 (13:04 +0300)
committerBirunthan Mohanathas <birunthan@mohanathas.com>
Thu, 19 Apr 2012 10:04:42 +0000 (13:04 +0300)
bindings/c/tag_c.cpp
taglib/ape/apeitem.cpp
taglib/s3m/s3mfile.cpp
tests/test_apetag.cpp
tests/test_flac.cpp

index 869e0f4baed29437aab9bf1464aa61f36f42a639..b1af613cf2832f6dd106a24e980e2317d1580e39 100644 (file)
@@ -109,7 +109,7 @@ void taglib_file_free(TagLib_File *file)
 
 BOOL taglib_file_is_valid(const TagLib_File *file)
 {
-       return reinterpret_cast<const File *>(file)->isValid();
+  return reinterpret_cast<const File *>(file)->isValid();
 }
 
 TagLib_Tag *taglib_file_tag(const TagLib_File *file)
index ac0e26ed02b5a11863bdeb788bacd6ebd429b580..58278b6b3d5123b8e49befc5158bbfc005913d23 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)
index 98bc6a5610dad05d2f5f4a4258dd3bb85e8adbfd..b90bb5433f48ffa0b1b71ea3eaf74ac0ff14f6b3 100644 (file)
@@ -193,9 +193,9 @@ void S3M::File::read(bool)
   seek(96);
   ushort realLength = 0;
   for(ushort i = 0; i < length; ++ i) {
-         READ_BYTE_AS(order);
-         if(order == 255) break;
-         if(order != 254) ++ realLength;
+    READ_BYTE_AS(order);
+    if(order == 255) break;
+    if(order != 254) ++ realLength;
   }
   d->properties.setLengthInPatterns(realLength);
 
index 422725df4732f175d2a8a80aa71518a6a9fde8ca..c469670396ef0e0abfc976e0fb6683e4b7f97dde 100644 (file)
@@ -41,17 +41,17 @@ public:
 
   void testPropertyInterface1()
   {
-         APE::Tag tag;
-         PropertyMap dict = tag.properties();
-         CPPUNIT_ASSERT(dict.isEmpty());
-         dict["ARTIST"] = String("artist 1");
-         dict["ARTIST"].append("artist 2");
-         dict["TRACKNUMBER"].append("17");
-         tag.setProperties(dict);
-         CPPUNIT_ASSERT_EQUAL(String("17"), tag.itemListMap()["TRACK"].values()[0]);
-         CPPUNIT_ASSERT_EQUAL(2u, tag.itemListMap()["ARTIST"].values().size());
-         CPPUNIT_ASSERT_EQUAL(String("artist 1"), tag.artist());
-         CPPUNIT_ASSERT_EQUAL(17u, tag.track());
+    APE::Tag tag;
+    PropertyMap dict = tag.properties();
+    CPPUNIT_ASSERT(dict.isEmpty());
+    dict["ARTIST"] = String("artist 1");
+    dict["ARTIST"].append("artist 2");
+    dict["TRACKNUMBER"].append("17");
+    tag.setProperties(dict);
+    CPPUNIT_ASSERT_EQUAL(String("17"), tag.itemListMap()["TRACK"].values()[0]);
+    CPPUNIT_ASSERT_EQUAL(2u, tag.itemListMap()["ARTIST"].values().size());
+    CPPUNIT_ASSERT_EQUAL(String("artist 1"), tag.artist());
+    CPPUNIT_ASSERT_EQUAL(17u, tag.track());
   }
 
   void testPropertyInterface2()
index 1bf6015a21366e06878d346476a35c118b6018e2..992a02b87e7e2f114303f5fdb539648080b6df4a 100644 (file)
@@ -212,7 +212,7 @@ public:
 
   void testDict()
   {
-       // test unicode & multiple values with dict interface
+    // test unicode & multiple values with dict interface
     ScopedFileCopy copy("silence-44-s", ".flac");
     string newname = copy.fileName();