r24094 by jghali - Fix compiler warning related to misleading indentation

scribus-commit scribus-commit at lists.scribus.net
Fri Oct 23 23:24:57 UTC 2020


Author: jghali
Date: Fri Oct 23 23:24:57 2020
New Revision: 24094

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24094
Log:
Fix compiler warning related to misleading indentation

Modified:
    branches/Version14x/Scribus/scribus/pdflib_core.cpp

Modified: branches/Version14x/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24094&path=/branches/Version14x/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/pdflib_core.cpp	(original)
+++ branches/Version14x/Scribus/scribus/pdflib_core.cpp	Fri Oct 23 23:24:57 2020
@@ -6916,48 +6916,48 @@
 	{
 	case PoDoFo::ePdfDataType_Reference:
 		{
-		const PoDoFo::PdfReference reference(obj->GetReference());
-		uint objNr;
-		if (!importedObjects.contains(reference))
-		{
-			objNr = newObject();
-			importedObjects[reference] = objNr;
-			referencedObjects.append(reference);
-		}
-		else
-		{
-			objNr = importedObjects[reference];
-		}
-		PutDoc(" " + QString::number(objNr) + " 0 R");
+			const PoDoFo::PdfReference reference(obj->GetReference());
+			uint objNr;
+			if (!importedObjects.contains(reference))
+			{
+				objNr = newObject();
+				importedObjects[reference] = objNr;
+				referencedObjects.append(reference);
+			}
+			else
+			{
+				objNr = importedObjects[reference];
+			}
+			PutDoc(" " + QString::number(objNr) + " 0 R");
 		}
 		break;
 	case PoDoFo::ePdfDataType_Array:
 		{
-		const PoDoFo::PdfArray& array(obj->GetArray());
-		PutDoc("[");
-		for (uint i=0; i < array.size(); ++i)
-			copyPoDoFoDirect( &(array[i]), referencedObjects, importedObjects);
+			const PoDoFo::PdfArray& array(obj->GetArray());
+			PutDoc("[");
+			for (uint i=0; i < array.size(); ++i)
+				copyPoDoFoDirect( &(array[i]), referencedObjects, importedObjects);
 			PutDoc("]");
 		}
 		break;
 	case PoDoFo::ePdfDataType_Dictionary:
 		{
-		const PoDoFo::PdfDictionary& dict(obj->GetDictionary());
-		const PoDoFo::TKeyMap keys = dict.GetKeys();
-		PutDoc("<<");
-		for (PoDoFo::TCIKeyMap k=keys.begin(); k != keys.end(); ++k)
-		{
-			PutDoc("\n/" + k->first.GetEscapedName());
-			copyPoDoFoDirect(k->second, referencedObjects, importedObjects);
-		}
-		PutDoc(" >>");
+			const PoDoFo::PdfDictionary& dict(obj->GetDictionary());
+			const PoDoFo::TKeyMap keys = dict.GetKeys();
+			PutDoc("<<");
+			for (PoDoFo::TCIKeyMap k=keys.begin(); k != keys.end(); ++k)
+			{
+				PutDoc("\n/" + k->first.GetEscapedName());
+				copyPoDoFoDirect(k->second, referencedObjects, importedObjects);
+			}
+			PutDoc(" >>");
 		}
 		break;
 	default:
 		{
-		std::string str;
-		obj->ToString(str);
-		PutDoc(" " + str);
+			std::string str;
+			obj->ToString(str);
+			PutDoc(" " + str);
 		}
 	}
 	




More information about the scribus-commit mailing list