r24130 by jghali - Small code cleanup

scribus-commit scribus-commit at lists.scribus.net
Fri Oct 30 15:30:06 UTC 2020


Author: jghali
Date: Fri Oct 30 15:30:06 2020
New Revision: 24130

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24130
Log:
Small code cleanup

Modified:
    trunk/Scribus/scribus/pdflib_core.cpp

Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24130&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp	(original)
+++ trunk/Scribus/scribus/pdflib_core.cpp	Fri Oct 30 15:30:06 2020
@@ -2681,8 +2681,8 @@
 				PutPage(Pdf::toName(ShName) + " gs\n");
 			}
 /* Bookmarks on Master Pages do not make any sense */
-//				if ((ite->isBookmark) && (Options.Bookmarks))
-//					PDF_Bookmark(ite, pag->height() - (ite->yPos() - pag->yOffset()));
+//			if ((ite->isBookmark) && (Options.Bookmarks))
+//				PDF_Bookmark(ite, pag->height() - (ite->yPos() - pag->yOffset()));
 			if (!ite->printEnabled() || ((ite->itemType() == PageItem::TextFrame) && (!pag->pageNameEmpty())))
 			{
 				PutPage("Q\n");
@@ -2696,8 +2696,7 @@
 			if (ite->DashValues.count() != 0)
 			{
 				PutPage("[ ");
-				QVector<double>::iterator it;
-				for (it = ite->DashValues.begin(); it != ite->DashValues.end(); ++it)
+				for (auto it = ite->DashValues.cbegin(); it != ite->DashValues.cend(); ++it)
 				{
 					double da = *it;
 					// #8758: Custom dotted lines don't export properly to pdf
@@ -4423,8 +4422,7 @@
 	if (ite->DashValues.count() != 0)
 	{
 		tmp += "[ ";
-		QVector<double>::iterator it;
-		for (it = ite->DashValues.begin(); it != ite->DashValues.end(); ++it)
+		for (auto it = ite->DashValues.cbegin(); it != ite->DashValues.cend(); ++it)
 		{
 			double da = *it;
 			// #8758: Custom dotted lines don't export properly to pdf
@@ -5435,8 +5433,7 @@
 		if (DashValues.count() != 0)
 		{
 			tmp += "[ ";
-			QVector<double>::iterator it;
-			for (it = DashValues.begin(); it != DashValues.end(); ++it)
+			for (auto it = DashValues.cbegin(); it != DashValues.cend(); ++it)
 			{
 				double da = *it;
 				if (da != 0)




More information about the scribus-commit mailing list