r22572 by jghali - fix some signed/unsigned warnings

scribus-commit scribus-commit at lists.scribus.net
Sun Jun 3 18:23:05 UTC 2018


Author: jghali
Date: Sun Jun  3 18:23:05 2018
New Revision: 22572

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22572
Log:
fix some signed/unsigned warnings

Modified:
    trunk/Scribus/scribus/pdflib_core.cpp
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22572&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp	(original)
+++ trunk/Scribus/scribus/pdflib_core.cpp	Sun Jun  3 18:23:05 2018
@@ -6235,7 +6235,7 @@
 			mpa.scale(1, Gscale);
 		}
 		QColor qStopColor;
-		for (uint cst = 0; cst < gradient.Stops(); ++cst)
+		for (int cst = 0; cst < gradient.Stops(); ++cst)
 		{
 			double actualStop = cstops.at(cst)->rampPoint;
 			qStopColor = cstops.at(cst)->color;
@@ -7411,7 +7411,7 @@
 	Gcolors.clear();
 	colorNames.clear();
 	colorShades.clear();
-	for (uint cst = 0; cst < gradient.Stops(); ++cst)
+	for (int cst = 0; cst < gradient.Stops(); ++cst)
 	{
 		double actualStop = cstops.at(cst)->rampPoint;
 		if (cst == 0)
@@ -8252,7 +8252,7 @@
 	double lastStop = -1.0;
 	double actualStop = 0.0;
 	bool   isFirst = true, transparencyFound = false;
-	for (uint cst = 0; cst < gradient.Stops(); ++cst)
+	for (int cst = 0; cst < gradient.Stops(); ++cst)
 	{
 		actualStop = cstops.at(cst)->rampPoint;
 		if ((actualStop == lastStop) && (!isFirst))

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22572&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp	(original)
+++ trunk/Scribus/scribus/scribus.cpp	Sun Jun  3 18:23:05 2018
@@ -2981,10 +2981,10 @@
 
 void ScribusMainWindow::rebuildRecentFileMenu()
 {
+	QString strippedName, localName;
 	scrMenuMgr->clearMenuStrings("FileOpenRecent");
 	scrRecentFileActions.clear();
-	uint max = qMin(m_prefsManager->appPrefs.uiPrefs.recentDocCount, RecentDocs.count());
-	QString strippedName, localName;
+	int max = qMin(m_prefsManager->appPrefs.uiPrefs.recentDocCount, RecentDocs.count());
 	for (int i = 0; i < max; ++i)
 	{
 		strippedName = localName = QDir::toNativeSeparators(RecentDocs[i]);




More information about the scribus-commit mailing list