r25037 by jghali - Small code cleanup

scribus-commit scribus-commit at lists.scribus.net
Wed Mar 16 23:17:29 UTC 2022


Author: jghali
Date: Wed Mar 16 23:17:29 2022
New Revision: 25037

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

Modified:
    branches/Version15x/Scribus/scribus/scribus.cpp

Modified: branches/Version15x/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=25037&path=/branches/Version15x/Scribus/scribus/scribus.cpp
==============================================================================
--- branches/Version15x/Scribus/scribus/scribus.cpp	(original)
+++ branches/Version15x/Scribus/scribus/scribus.cpp	Wed Mar 16 23:17:29 2022
@@ -2856,8 +2856,7 @@
 	int max = qMin(m_prefsManager.appPrefs.scrapbookPrefs.numScrapbookCopies, scrapbookPalette->tempBView->objectMap.count());
 	if (max > 0)
 	{
-		QMap<QString,BibView::Elem>::Iterator it;
-		it = scrapbookPalette->tempBView->objectMap.end();
+		auto it = scrapbookPalette->tempBView->objectMap.end();
 		it--;
 		QString strippedName;
 		for (int m = 0; m < max; ++m)




More information about the scribus-commit mailing list