r24032 by jghali - Fix incorrect use of nullptr

scribus-commit scribus-commit at lists.scribus.net
Fri Sep 25 13:13:36 UTC 2020


Author: jghali
Date: Fri Sep 25 13:13:36 2020
New Revision: 24032

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24032
Log:
Fix incorrect use of nullptr

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

Modified: trunk/Scribus/scribus/ui/pdfversionmodel.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24032&path=/trunk/Scribus/scribus/ui/pdfversionmodel.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/pdfversionmodel.cpp	(original)
+++ trunk/Scribus/scribus/ui/pdfversionmodel.cpp	Fri Sep 25 13:13:36 2020
@@ -62,9 +62,9 @@
 Qt::ItemFlags PdfVersionModel::flags(const QModelIndex &index) const
 {
 	if (!index.isValid())
-		return nullptr;
+		return Qt::ItemFlags();
 
-	Qt::ItemFlags flags = nullptr;
+	Qt::ItemFlags flags;
 	if (m_enabledVec[index.row()])
 		flags = Qt::ItemIsEnabled | Qt::ItemIsSelectable;
 	return flags;




More information about the scribus-commit mailing list