]> granicus.if.org Git - taglib/commitdiff
SVN_SILENT fix spaces
authorScott Wheeler <wheeler@kde.org>
Thu, 31 Jan 2008 18:03:18 +0000 (18:03 +0000)
committerScott Wheeler <wheeler@kde.org>
Thu, 31 Jan 2008 18:03:18 +0000 (18:03 +0000)
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@769158 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

taglib/tagunion.cpp
taglib/tagunion.h
taglib/trueaudio/trueaudiofile.cpp
taglib/wavpack/wavpackfile.cpp

index ae181eb8690d9347d152635df9f0a415be7af5f4..28fbb09df90f73ad2bf75f4e0c03684f86f74836 100644 (file)
 
 using namespace TagLib;
 
-#define stringUnion(method)                                      \
-  if(tag(0) && !tag(0)->method().isEmpty())                     \
-    return tag(0)->method();                                    \
-  if(tag(1) && !tag(1)->method().isEmpty())                     \
-    return tag(1)->method();                                    \
-  if(tag(2) && !tag(2)->method().isEmpty())                     \
-    return tag(2)->method();                                    \
-  return String::null                                            \
-
-#define numberUnion(method)                                      \
-  if(tag(0) && tag(0)->method() > 0)                            \
-    return tag(0)->method();                                    \
-  if(tag(1) && tag(1)->method() > 0)                            \
-    return tag(1)->method();                                    \
-  if(tag(2) && tag(2)->method() > 0)                            \
-    return tag(2)->method();                                    \
+#define stringUnion(method)                                          \
+  if(tag(0) && !tag(0)->method().isEmpty())                          \
+    return tag(0)->method();                                         \
+  if(tag(1) && !tag(1)->method().isEmpty())                          \
+    return tag(1)->method();                                         \
+  if(tag(2) && !tag(2)->method().isEmpty())                          \
+    return tag(2)->method();                                         \
+  return String::null                                                \
+
+#define numberUnion(method)                                          \
+  if(tag(0) && tag(0)->method() > 0)                                 \
+    return tag(0)->method();                                         \
+  if(tag(1) && tag(1)->method() > 0)                                 \
+    return tag(1)->method();                                         \
+  if(tag(2) && tag(2)->method() > 0)                                 \
+    return tag(2)->method();                                         \
   return 0
 
-#define setUnion(method, value)                                  \
-  if(tag(0))                                                    \
-    tag(0)->set##method(value);                                         \
-  if(tag(1))                                                    \
-    tag(1)->set##method(value);                                         \
-  if(tag(2))                                                    \
-    tag(2)->set##method(value);                                         \
+#define setUnion(method, value)                                      \
+  if(tag(0))                                                         \
+    tag(0)->set##method(value);                                      \
+  if(tag(1))                                                         \
+    tag(1)->set##method(value);                                      \
+  if(tag(2))                                                         \
+    tag(2)->set##method(value);                                      \
 
 class TagUnion::TagUnionPrivate
 {
index ad29c6acca5c7a6dfa95c1b7b3cf1c1781913ff7..a57d6222477d741127e030a93b775cd570ebf15d 100644 (file)
@@ -76,12 +76,12 @@ namespace TagLib {
     template <class T> T *access(int index, bool create)
     {
       if(!create || tag(index))
-       return static_cast<T *>(tag(index));
+        return static_cast<T *>(tag(index));
 
       set(index, new T);
       return static_cast<T *>(tag(index));
     }
-    
+
   private:
     TagUnion(const Tag &);
     TagUnion &operator=(const Tag &);
index c5979ecfbbe6cd186686d955e3ffe52f3bae71a8..2a0ccaa70557aaac0cb7b0dfffef47d06c0b7441 100644 (file)
@@ -145,7 +145,7 @@ bool TrueAudio::File::save()
     removeBlock(d->ID3v2Location, d->ID3v2OriginalSize);
     d->ID3v1Location -= d->ID3v2OriginalSize;
     d->ID3v2Location = -1;
-    d->ID3v2OriginalSize = 0; 
+    d->ID3v2OriginalSize = 0;
     d->hasID3v2 = false;
   }
 
index e036025375463fda5ad08a6037d368269c96a359..9a64b8c1823e44de92b6fd37765d199f660379fb 100644 (file)
@@ -166,7 +166,7 @@ bool WavPack::File::save()
       if(d->hasID3v1) {
         if(d->ID3v1Location > d->APELocation) {
           d->ID3v1Location -= d->APESize;
-       }
+        }
       }
     }
   }