[sword-svn] r3775 - trunk/src/modules/common

scribe at crosswire.org scribe at crosswire.org
Sat Aug 15 06:28:11 EDT 2020


Author: scribe
Date: 2020-08-15 06:28:11 -0400 (Sat, 15 Aug 2020)
New Revision: 3775

Modified:
   trunk/src/modules/common/xzcomprs.cpp
Log:
Whitespace cleanups


Modified: trunk/src/modules/common/xzcomprs.cpp
===================================================================
--- trunk/src/modules/common/xzcomprs.cpp	2020-08-15 10:24:56 UTC (rev 3774)
+++ trunk/src/modules/common/xzcomprs.cpp	2020-08-15 10:28:11 UTC (rev 3775)
@@ -77,6 +77,7 @@
  */
 
 void XzCompress::encode(void) {
+
 	direct = 0;	// set direction needed by parent [Get|Send]Chars()
 
 	// get buffer
@@ -98,8 +99,7 @@
 	char *zbuf = new char[zlen+1];
 	size_t zpos = 0;
 
-	if (len)
-	{
+	if (len) {
 		//printf("Doing compress\n");
 		switch (lzma_easy_buffer_encode(level | LZMA_PRESET_EXTREME, LZMA_CHECK_CRC64, NULL, (const uint8_t*)buf, (size_t)len, (uint8_t*)zbuf, &zpos, (size_t)zlen)) {
 		        case LZMA_OK: sendChars(zbuf, zpos);  break;
@@ -112,8 +112,7 @@
 			default: fprintf(stderr, "ERROR: an unknown error occurred during compression.\n"); break;
 		}
 	}
-	else
-	{
+	else {
 		fprintf(stderr, "ERROR: no buffer to compress\n");
 	}
 	delete [] zbuf;



More information about the sword-cvs mailing list