r21978 by craig - Coverity 1350807: Fix missing initialisation of member variables

scribus-commit scribus-commit at lists.scribus.net
Sat Apr 22 20:47:39 UTC 2017


Author: craig
Date: Sat Apr 22 20:47:39 2017
New Revision: 21978

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21978
Log:
Coverity 1350807: Fix missing initialisation of member variables

Modified:
    trunk/Scribus/scribus/plugins/import/emf/importemf.cpp

Modified: trunk/Scribus/scribus/plugins/import/emf/importemf.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21978&path=/trunk/Scribus/scribus/plugins/import/emf/importemf.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/emf/importemf.cpp	(original)
+++ trunk/Scribus/scribus/plugins/import/emf/importemf.cpp	Sat Apr 22 20:47:39 2017
@@ -428,12 +428,40 @@
 extern SCRIBUS_API ScribusQApp * ScQApp;
 
 EmfPlug::EmfPlug(ScribusDoc* doc, int flags)
+	: docWidth(0.0),
+	  docHeight(0.0),
+	  baseX(0.0),
+	  baseY(0.0),
+	  docX(0.0),
+	  docY(0.0),
+	  dpiX(0.0),
+	  dpiY(0.0),
+	  EmfPdpiX(0),
+	  EmfPdpiY(0.0),
+	  m_records(0),
+	  recordCount(0),
+	  viewPextendX(0),
+	  viewPextendY(0),
+	  winPextendX(0),
+	  winPextendY(0),
+	  winOrigX(0),
+	  winOrigY(0),
+	  progressDialog(NULL),
+	  cancel(false),
+	  m_Doc(doc),
+	  importerFlags(flags),
+	  inPath(false),
+	  inEMFPlus(false),
+	  emfPlusDual(false),
+	  emfMixed(false),
+	  emfPlusScale(0.0),
+	  SerializableObject_Valid(false),
+	  m_ObjSize(0),
+	  m_currObjSize(0),
+	  m_objID(0)
 {
 	tmpSel=new Selection(this, false);
-	m_Doc=doc;
-	importerFlags = flags;
 	interactive = (flags & LoadSavePlugin::lfInteractive);
-	progressDialog = NULL;
 }
 
 QImage EmfPlug::readThumbnail(QString fName)




More information about the scribus-commit mailing list