r20958 by craig -

scribus-commit scribus-commit at lists.scribus.net
Tue Feb 9 18:59:05 UTC 2016


Author: craig
Date: Tue Feb  9 18:59:05 2016
New Revision: 20958

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20958
Log:
coverity #1350660: Uninitialised pointer field

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

Modified: trunk/Scribus/scribus/ui/tabruler.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20958&path=/trunk/Scribus/scribus/ui/tabruler.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/tabruler.cpp	(original)
+++ trunk/Scribus/scribus/ui/tabruler.cpp	Tue Feb  9 18:59:05 2016
@@ -489,11 +489,16 @@
 	repaint();
 }
 
-Tabruler::Tabruler( QWidget* parent, bool haveFirst, int dEin, QList<ParagraphStyle::TabRecord> Tabs, double wid ) : QWidget( parent )
+Tabruler::Tabruler( QWidget* parent, bool haveFirst, int dEin, QList<ParagraphStyle::TabRecord> Tabs, double wid ) : QWidget( parent ),
+	firstLineLabel(0),
+	leftIndentLabel(0),
+	rightIndentLabel(0),
+	firstLineData(0),
+	leftIndentData(0),
+	rightIndentData(0)
 {
 	docUnitRatio=unitGetRatioFromIndex(dEin);
-	double ww;
-	ww = (wid < 0) ? 4000 : wid;
+	double ww = (wid < 0) ? 4000 : wid;
 	tabrulerLayout = new QVBoxLayout( this );
 	tabrulerLayout->setMargin(0);
 	tabrulerLayout->setSpacing(5);




More information about the scribus-commit mailing list