r21973 by craig - Coverity 1374352: Add constructor to ResourceCollection to initialise pointer variables

scribus-commit scribus-commit at lists.scribus.net
Sat Apr 22 16:48:11 UTC 2017


Author: craig
Date: Sat Apr 22 16:48:11 2017
New Revision: 21973

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21973
Log:
Coverity 1374352: Add constructor to ResourceCollection to initialise pointer variables

Modified:
    trunk/Scribus/scribus/resourcecollection.h

Modified: trunk/Scribus/scribus/resourcecollection.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21973&path=/trunk/Scribus/scribus/resourcecollection.h
==============================================================================
--- trunk/Scribus/scribus/resourcecollection.h	(original)
+++ trunk/Scribus/scribus/resourcecollection.h	Sat Apr 22 16:48:11 2017
@@ -43,6 +43,11 @@
 class SCRIBUS_API ResourceCollection
 {
 public:
+		ResourceCollection()
+		: availableFonts(NULL),
+		availableColors(NULL),
+		availableGradients(NULL)
+		{}
 	void collectFont(const QString& name)         { if (!name.isEmpty()) m_fonts.insert(name,name); }
 	void collectFontfeatures(const QString& name) { if (!name.isEmpty()) m_fontfeatures.insert(name,name); }
 	void collectPattern(const QString& name)      { if (!name.isEmpty()) m_patterns.insert(name,name); }




More information about the scribus-commit mailing list