Revision: 9760
          http://sourceforge.net/p/skim-app/code/9760
Author:   hofman
Date:     2018-04-12 17:23:19 +0000 (Thu, 12 Apr 2018)
Log Message:
-----------
code layout

Modified Paths:
--------------
    trunk/SkimNotes/SKNExtendedAttributeManager.m

Modified: trunk/SkimNotes/SKNExtendedAttributeManager.m
===================================================================
--- trunk/SkimNotes/SKNExtendedAttributeManager.m       2018-04-12 17:12:32 UTC 
(rev 9759)
+++ trunk/SkimNotes/SKNExtendedAttributeManager.m       2018-04-12 17:23:19 UTC 
(rev 9760)
@@ -568,19 +568,19 @@
 
 - (NSData *)bzipData:(NSData *)data;
 {
-       int compression = 5;
+    int compression = 5;
     int bzret;
-       bz_stream stream = { 0 };
-       stream.next_in = (char *)[data bytes];
-       stream.avail_in = (unsigned int)[data length];
-       
-       NSMutableData *buffer = [[NSMutableData alloc] 
initWithLength:BZIP_BUFFER_SIZE];
-       stream.next_out = [buffer mutableBytes];
-       stream.avail_out = BZIP_BUFFER_SIZE;
-       
-       NSMutableData *compressed = [NSMutableData dataWithCapacity:[data 
length]];
-       
-       BZ2_bzCompressInit(&stream, compression, 0, 0);
+    bz_stream stream = { 0 };
+    stream.next_in = (char *)[data bytes];
+    stream.avail_in = (unsigned int)[data length];
+    
+    NSMutableData *buffer = [[NSMutableData alloc] 
initWithLength:BZIP_BUFFER_SIZE];
+    stream.next_out = [buffer mutableBytes];
+    stream.avail_out = BZIP_BUFFER_SIZE;
+    
+    NSMutableData *compressed = [NSMutableData dataWithCapacity:[data length]];
+    
+    BZ2_bzCompressInit(&stream, compression, 0, 0);
     BOOL hadError = NO;
     do {
         bzret = BZ2_bzCompress(&stream, (stream.avail_in) ? BZ_RUN : 
BZ_FINISH);
@@ -595,25 +595,25 @@
     } while(bzret != BZ_STREAM_END && NO == hadError);
     
     BZ2_bzCompressEnd(&stream);
-       [buffer release];
+    [buffer release];
     
-       return compressed;
+    return compressed;
 }
 
 - (NSData *)bunzipData:(NSData *)data;
 {
-       int bzret;
-       bz_stream stream = { 0 };
-       stream.next_in = (char *)[data bytes];
-       stream.avail_in = (unsigned int)[data length];
-       
-       NSMutableData *buffer = [[NSMutableData alloc] 
initWithLength:BZIP_BUFFER_SIZE];
-       stream.next_out = [buffer mutableBytes];
-       stream.avail_out = BZIP_BUFFER_SIZE;
-       
-       NSMutableData *decompressed = [NSMutableData dataWithCapacity:[data 
length]];
-       
-       BZ2_bzDecompressInit(&stream, 0, NO);
+    int bzret;
+    bz_stream stream = { 0 };
+    stream.next_in = (char *)[data bytes];
+    stream.avail_in = (unsigned int)[data length];
+    
+    NSMutableData *buffer = [[NSMutableData alloc] 
initWithLength:BZIP_BUFFER_SIZE];
+    stream.next_out = [buffer mutableBytes];
+    stream.avail_out = BZIP_BUFFER_SIZE;
+    
+    NSMutableData *decompressed = [NSMutableData dataWithCapacity:[data 
length]];
+    
+    BZ2_bzDecompressInit(&stream, 0, NO);
     BOOL hadError = NO;
     NSInteger hangCount = 0;
     const NSInteger maxHangCount = 100;
@@ -632,7 +632,7 @@
     BZ2_bzDecompressEnd(&stream);
     [buffer release];
 
-       return decompressed;
+    return decompressed;
 }
 
 - (BOOL)isBzipData:(NSData *)data;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to