r21997 by craig - Coverity 1350813: Uninitialised member variables

scribus-commit scribus-commit at lists.scribus.net
Sun Apr 23 11:41:13 UTC 2017


Author: craig
Date: Sun Apr 23 11:41:13 2017
New Revision: 21997

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21997
Log:
Coverity 1350813: Uninitialised member variables

Modified:
    trunk/Scribus/scribus/plugins/import/pages/importpages.cpp

Modified: trunk/Scribus/scribus/plugins/import/pages/importpages.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21997&path=/trunk/Scribus/scribus/plugins/import/pages/importpages.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pages/importpages.cpp	(original)
+++ trunk/Scribus/scribus/plugins/import/pages/importpages.cpp	Sun Apr 23 11:41:13 2017
@@ -468,13 +468,27 @@
 extern SCRIBUS_API ScribusQApp * ScQApp;
 
 PagesPlug::PagesPlug(ScribusDoc* doc, int flags)
+	: baseX(0.0),
+	  baseY(0.0),
+	  docWidth(0.0),
+	  docHeight(0.0),
+	  m_Doc(doc),
+	  importerFlags(flags),
+	  progressDialog(NULL),
+	  cancel(false),
+	  firstPage(false),
+	  pagecount(0),
+	  mpagecount(0),
+	  topMargin(0.0),
+	  leftMargin(0.0),
+	  rightMargin(0.0),
+	  bottomMargin(0.0),
+	  pgCols(0.0),
+	  pgGap(0.0),
+	  uz(NULL)
 {
 	tmpSel = new Selection(this, false);
-	m_Doc = doc;
-	importerFlags = flags;
 	interactive = (flags & LoadSavePlugin::lfInteractive);
-	progressDialog = NULL;
-	uz = NULL;
 }
 
 QImage PagesPlug::readThumbnail(QString fName)




More information about the scribus-commit mailing list