]> granicus.if.org Git - taglib/commitdiff
Fix a broken indent.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Sun, 21 Feb 2016 16:39:40 +0000 (01:39 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Sun, 21 Feb 2016 16:39:40 +0000 (01:39 +0900)
taglib/toolkit/tzlib.cpp

index 7198b6308f09aa45c40bb61dd7926a80d95a8fd2..3d49732a2a35c391cd61f41c5c51990c67b7c338 100644 (file)
@@ -55,49 +55,49 @@ ByteVector zlib::decompress(const ByteVector &data)
 {
 #ifdef HAVE_ZLIB
 
-    z_stream stream = {};
+  z_stream stream = {};
 
-    if(inflateInit(&stream) != Z_OK) {
-      debug("zlib::decompress() - Failed to initizlize zlib.");
-      return ByteVector();
-    }
+  if(inflateInit(&stream) != Z_OK) {
+    debug("zlib::decompress() - Failed to initizlize zlib.");
+    return ByteVector();
+  }
 
-    ByteVector inData = data;
+  ByteVector inData = data;
 
-    stream.avail_in = static_cast<uInt>(inData.size());
-    stream.next_in  = reinterpret_cast<Bytef *>(inData.data());
+  stream.avail_in = static_cast<uInt>(inData.size());
+  stream.next_in  = reinterpret_cast<Bytef *>(inData.data());
 
-    const unsigned int chunkSize = 1024;
+  const unsigned int chunkSize = 1024;
 
-    ByteVector outData;
+  ByteVector outData;
 
-    do {
-      const size_t offset = outData.size();
-      outData.resize(outData.size() + chunkSize);
+  do {
+    const size_t offset = outData.size();
+    outData.resize(outData.size() + chunkSize);
 
-      stream.avail_out = static_cast<uInt>(chunkSize);
-      stream.next_out  = reinterpret_cast<Bytef *>(outData.data() + offset);
+    stream.avail_out = static_cast<uInt>(chunkSize);
+    stream.next_out  = reinterpret_cast<Bytef *>(outData.data() + offset);
 
-      const int result = inflate(&stream, Z_NO_FLUSH);
+    const int result = inflate(&stream, Z_NO_FLUSH);
 
-      if(result == Z_STREAM_ERROR ||
-         result == Z_NEED_DICT ||
-         result == Z_DATA_ERROR ||
-         result == Z_MEM_ERROR)
-      {
-        if(result != Z_STREAM_ERROR)
-          inflateEnd(&stream);
+    if(result == Z_STREAM_ERROR ||
+        result == Z_NEED_DICT ||
+        result == Z_DATA_ERROR ||
+        result == Z_MEM_ERROR)
+    {
+      if(result != Z_STREAM_ERROR)
+        inflateEnd(&stream);
 
-        debug("zlib::decompress() - Error reading compressed stream.");
-        return ByteVector();
-      }
+      debug("zlib::decompress() - Error reading compressed stream.");
+      return ByteVector();
+    }
 
-      outData.resize(outData.size() - stream.avail_out);
-    } while(stream.avail_out == 0);
+    outData.resize(outData.size() - stream.avail_out);
+  } while(stream.avail_out == 0);
 
-    inflateEnd(&stream);
+  inflateEnd(&stream);
 
-    return outData;
+  return outData;
 
 #else