r21977 by craig - Coverity 1357096: Fix missing initialisation of member variables

scribus-commit scribus-commit at lists.scribus.net
Sat Apr 22 18:50:35 UTC 2017


Author: craig
Date: Sat Apr 22 18:50:35 2017
New Revision: 21977

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

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

Modified: trunk/Scribus/scribus/ui/propertiespalette_shape.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21977&path=/trunk/Scribus/scribus/ui/propertiespalette_shape.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertiespalette_shape.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertiespalette_shape.cpp	Sat Apr 22 18:50:35 2017
@@ -36,14 +36,15 @@
 #include "util_math.h"
 
 
-PropertiesPalette_Shape::PropertiesPalette_Shape( QWidget* parent) : QWidget(parent)
-{
-	m_ScMW = 0;
-	m_doc  = 0;
-	m_haveDoc    = false;
-	m_haveItem   = false;
-	m_unitRatio  = 1.0;
-
+PropertiesPalette_Shape::PropertiesPalette_Shape( QWidget* parent)
+	: QWidget(parent),
+	  m_haveDoc(false),
+	  m_haveItem(false),
+	  m_unitRatio(1.0),
+	  m_unitIndex(SC_PT),
+	  m_item(NULL),
+	  m_doc(NULL)
+{
 	m_tmpSelection = new Selection(this, false);
 	m_tmpSelection->clear();
 




More information about the scribus-commit mailing list