r20957 by craig -

scribus-commit scribus-commit at lists.scribus.net
Tue Feb 9 18:53:08 UTC 2016


Author: craig
Date: Tue Feb  9 18:53:08 2016
New Revision: 20957

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20957
Log:
coverity #1350661: Uninitialised scalar field

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

Modified: trunk/Scribus/scribus/ui/proptree.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20957&path=/trunk/Scribus/scribus/ui/proptree.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/proptree.cpp	(original)
+++ trunk/Scribus/scribus/ui/proptree.cpp	Tue Feb  9 18:53:08 2016
@@ -278,13 +278,17 @@
 	return sz;
 }
 
-PropTreeItem::PropTreeItem(QTreeWidget *parent, int typ, QString title) : QObject(parent), QTreeWidgetItem(parent)
+PropTreeItem::PropTreeItem(QTreeWidget *parent, int typ, QString title) : QObject(parent), QTreeWidgetItem(parent),
+	m_type(typ),
+	m_unit(0),
+	m_decimals(0),
+	m_fmin(0.0),
+	m_fmax(0.0),
+	m_min(0),
+	m_max(0),
+	m_comboIndex(-1)
 {
 	setText(0, title);
-	m_type = typ;
-	m_comboIndex = -1;
-	m_unit = 0;
-	m_decimals = 0;
 	setData(0, Qt::UserRole, 0);
 	setData(1, Qt::UserRole, 0);
 	if (typ > 0)




More information about the scribus-commit mailing list