r24289 by craig - Remove usage of deprecated QStringList::toSet()

scribus-commit scribus-commit at lists.scribus.net
Wed Nov 25 22:29:34 UTC 2020


Author: craig
Date: Wed Nov 25 22:29:34 2020
New Revision: 24289

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24289
Log:
Remove usage of deprecated QStringList::toSet()

Modified:
    trunk/Scribus/scribus/loadsaveplugin.cpp

Modified: trunk/Scribus/scribus/loadsaveplugin.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24289&path=/trunk/Scribus/scribus/loadsaveplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/loadsaveplugin.cpp	(original)
+++ trunk/Scribus/scribus/loadsaveplugin.cpp	Wed Nov 25 22:29:34 2020
@@ -97,7 +97,7 @@
 	else
 		qDebug("%s", tr("No File Loader Plugins Found").toLocal8Bit().data());
 	// Avoid duplicate entries in the list
-	QSet<QString> fSet = filterList.toSet();
+	QSet<QString> fSet(filterList.begin(), filterList.end());
 	filterList = fSet.values();
 	std::sort(filterList.begin(), filterList.end());
 	return filterList;
@@ -133,7 +133,7 @@
 	else
 		qDebug("%s", tr("No File Loader Plugins Found").toLocal8Bit().data());
 	// Avoid duplicate entries in the list
-	QSet<QString> fSet = filterList.toSet();
+	QSet<QString> fSet(filterList.begin(), filterList.end());
 	filterList = fSet.values();
 	std::sort(filterList.begin(), filterList.end());
 	return filterList;
@@ -169,7 +169,7 @@
 	else
 		qDebug("%s", tr("No File Loader Plugins Found").toLocal8Bit().data());
 	// Avoid duplicate entries in the list
-	QSet<QString> fSet = filterList.toSet();
+	QSet<QString> fSet(filterList.begin(), filterList.end());
 	filterList = fSet.values();
 	std::sort(filterList.begin(), filterList.end());
 	return filterList;




More information about the scribus-commit mailing list