r22720 by jghali - code style fixes

scribus-commit scribus-commit at lists.scribus.net
Fri Oct 5 19:10:03 UTC 2018


Author: jghali
Date: Fri Oct  5 19:10:03 2018
New Revision: 22720

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22720
Log:
code style fixes

Modified:
    trunk/Scribus/scribus/pdflib_core.cpp

Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22720&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp	(original)
+++ trunk/Scribus/scribus/pdflib_core.cpp	Fri Oct  5 19:10:03 2018
@@ -786,7 +786,7 @@
 //#ifndef WORDS_BIGENDIAN
 //	// on little endian systems we need to swap bytes:
 //	uchar sw;
-//	for(int d = 0; d < cres.size()-1; d += 2)
+//	for (int d = 0; d < cres.size()-1; d += 2)
 //	{
 //		sw = cres[d];
 //		cres[d] = cres[d+1];
@@ -2056,7 +2056,7 @@
 		PutDoc(">>");
 		writer.endObj(fontObject2);
 		pageData.FObjects[fontName + "S"+Pdf::toPdf(Fc)] = fontObject2;
-	} // for(Fc)
+	} // for (Fc)
 
 	return result;
 }
@@ -2246,7 +2246,7 @@
 	PutDoc("<<\n/Length "+Pdf::toPdf(fon2.length()+1)+"\n");
 	PutDoc("/Length1 "+Pdf::toPdf(len1+1)+"\n");
 	PutDoc("/Length2 "+Pdf::toPdf(hexData.length())+"\n");
-	if(static_cast<int>(fon.length()-len2) == -1)
+	if (static_cast<int>(fon.length()-len2) == -1)
 		PutDoc("/Length3 0\n");
 	else
 		PutDoc("/Length3 "+Pdf::toPdf(fon.length()-len2)+"\n");
@@ -10002,24 +10002,24 @@
 			PoDoFo::PdfMemoryOutputStream outMemStream ( 1 );
 //			PoDoFo::PdfFilteredEncodeStream outMemStream (outMemStreamRaw, ePdfFilter_FlateDecode, false);
 			PoDoFo::PdfArray carray(page->GetContents()->GetArray());
-			for(unsigned int ci = 0; ci < carray.size(); ++ci)
-			{
-				if(carray[ci].HasStream())
+			for (unsigned int ci = 0; ci < carray.size(); ++ci)
+			{
+				if (carray[ci].HasStream())
 				{
 					carray[ci].GetStream()->GetFilteredCopy ( &outMemStream );
 				}
-				else if(carray[ci].IsReference())
+				else if (carray[ci].IsReference())
 				{
 					nextObj = doc->GetObjects().GetObject(carray[ci].GetReference());
 
 					while(nextObj != nullptr)
 					{
 
-						if(nextObj->IsReference())
+						if (nextObj->IsReference())
 						{
 							nextObj = doc->GetObjects().GetObject(nextObj->GetReference());
 						}
-						else if(nextObj->HasStream())
+						else if (nextObj->HasStream())
 						{
 							nextObj->GetStream()->GetFilteredCopy ( &outMemStream );
 							break;




More information about the scribus-commit mailing list