r21968 by craig - Coverity 1396758: Initialise memember variables

scribus-commit scribus-commit at lists.scribus.net
Sat Apr 22 16:26:03 UTC 2017


Author: craig
Date: Sat Apr 22 16:26:02 2017
New Revision: 21968

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21968
Log:
Coverity 1396758: Initialise memember variables

Modified:
    trunk/Scribus/scribus/fonts/ftface.cpp

Modified: trunk/Scribus/scribus/fonts/ftface.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21968&path=/trunk/Scribus/scribus/fonts/ftface.cpp
==============================================================================
--- trunk/Scribus/scribus/fonts/ftface.cpp	(original)
+++ trunk/Scribus/scribus/fonts/ftface.cpp	Sat Apr 22 16:26:02 2017
@@ -42,7 +42,21 @@
 
 FtFace::FtFace(QString fam, QString sty, QString vari, QString scname, 
 			   QString psname, QString path, int face, QStringList features)
-: ScFaceData(), m_face(NULL), m_isBold(false), m_isItalic(false)
+: ScFaceData(),
+	m_face(NULL),
+	m_isBold(false),
+	m_isItalic(false),
+	m_encoding(0.0),
+	m_uniEM(0.0),
+	m_ascent(0.0),
+	m_descent(0.0),
+	m_height(0.0),
+	m_xHeight(0.0),
+	m_capHeight(0.0),
+	m_maxAdvanceWidth(0.0),
+	m_underlinePos(0.0),
+	m_strikeoutPos(0.0),
+	m_strokeWidth(0.0)
 {
 	family = fam;
 	style = sty;




More information about the scribus-commit mailing list