r23217 by jghali - Fix signed/unsigned comparison warning

scribus-commit scribus-commit at lists.scribus.net
Fri Sep 27 04:07:35 UTC 2019


Author: jghali
Date: Fri Sep 27 04:07:35 2019
New Revision: 23217

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23217
Log:
Fix signed/unsigned comparison warning

Modified:
    trunk/Scribus/scribus/ui/customfdialog.cpp

Modified: trunk/Scribus/scribus/ui/customfdialog.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23217&path=/trunk/Scribus/scribus/ui/customfdialog.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/customfdialog.cpp	(original)
+++ trunk/Scribus/scribus/ui/customfdialog.cpp	Fri Sep 27 04:07:35 2019
@@ -67,8 +67,8 @@
 {
 	fmts.clear();
 	QString tmp[] = {"eps", "epsi", "gif", "png", "jpg", "jpeg", "xpm", "tif", "tiff", "bmp", "pbm", "pgm", "ppm", "xbm", "xpm", "psd", "pat"};
-	size_t array = sizeof(tmp) / sizeof(*tmp);
-	for (int i = 0; i < array; ++i)
+	size_t arraySize = sizeof(tmp) / sizeof(*tmp);
+	for (size_t i = 0; i < arraySize; ++i)
 		fmts.append(tmp[i]);
 	IconManager& im=IconManager::instance();
 	imagepm = im.loadIcon("16/image-x-generic.png");




More information about the scribus-commit mailing list