r20959 by craig -

scribus-commit scribus-commit at lists.scribus.net
Tue Feb 9 19:32:32 UTC 2016


Author: craig
Date: Tue Feb  9 19:32:32 2016
New Revision: 20959

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

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

Modified: trunk/Scribus/scribus/ui/tabruler.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20959&path=/trunk/Scribus/scribus/ui/tabruler.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/tabruler.cpp	(original)
+++ trunk/Scribus/scribus/ui/tabruler.cpp	Tue Feb  9 19:32:32 2016
@@ -30,23 +30,26 @@
 #include "iconmanager.h"
 #include "util.h"
 
-RulerT::RulerT(QWidget *pa, int ein, QList<ParagraphStyle::TabRecord> Tabs, bool ind, double wid) : QWidget(pa)
+RulerT::RulerT(QWidget *pa, int ein, QList<ParagraphStyle::TabRecord> Tabs, bool ind, double wid) : QWidget(pa),
+	mousePressed(false),
+	tabValues(Tabs),
+	haveInd(ind),
+	unitIndex(ein),
+	offset(0),
+	actTab(-1),
+	leftIndent(0),
+	firstLine(0),
+	Width(0.0),
+	rulerCode(0),
+	mouseX(0),
+	offsetIncrement(5)
 {
 	QPalette palette;
 	palette.setColor(backgroundRole(), QColor(255,255,255));
 	setPalette(palette);
-	unitIndex = ein;
 	iter=unitRulerGetIter1FromIndex(unitIndex);
 	iter2=unitRulerGetIter2FromIndex(unitIndex);
-	tabValues = Tabs;
-	haveInd = ind;
-	offsetIncrement = 5;
-	offset = 0;
-	firstLine = 0;
-	leftIndent = 0;
-	mousePressed = false;
-	rulerCode = 0;
-	actTab = -1;
+
 	setMouseTracking(true);
 	if (wid < 0)
 	{

Modified: trunk/Scribus/scribus/ui/tabruler.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20959&path=/trunk/Scribus/scribus/ui/tabruler.h
==============================================================================
--- trunk/Scribus/scribus/ui/tabruler.h	(original)
+++ trunk/Scribus/scribus/ui/tabruler.h	Tue Feb  9 19:32:32 2016
@@ -146,8 +146,8 @@
 	QHBoxLayout* layout2;
 	QHBoxLayout* layout1;
 	QHBoxLayout* indentLayout;
-	QVBoxLayout* layout3;
-	QHBoxLayout *layout4;
+//	QVBoxLayout* layout3;
+	QHBoxLayout* layout4;
 	QComboBox* typeCombo;
 	QComboBox* tabFillCombo;
 	QLabel* tabFillComboT;




More information about the scribus-commit mailing list