r21970 by craig - Coverity 1396759/60: Initialise member variables

scribus-commit scribus-commit at lists.scribus.net
Sat Apr 22 16:32:06 UTC 2017


Author: craig
Date: Sat Apr 22 16:32:06 2017
New Revision: 21970

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21970
Log:
Coverity 1396759/60: Initialise member variables

Modified:
    trunk/Scribus/scribus/text/textshaper.cpp

Modified: trunk/Scribus/scribus/text/textshaper.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21970&path=/trunk/Scribus/scribus/text/textshaper.cpp
==============================================================================
--- trunk/Scribus/scribus/text/textshaper.cpp	(original)
+++ trunk/Scribus/scribus/text/textshaper.cpp	Sat Apr 22 16:32:06 2017
@@ -16,17 +16,19 @@
 
 
 TextShaper::TextShaper(ITextContext* context, ITextSource &story, int firstChar, bool singlePar)
-	: m_context(context)
-	, m_story(story)
-	, m_firstChar(firstChar)
-	, m_singlePar(singlePar)
+	: m_context(context),
+	m_contextNeeded(false),
+	m_story(story),
+	m_firstChar(firstChar),
+	m_singlePar(singlePar)
 { }
 
 TextShaper::TextShaper(ITextSource &story, int firstChar)
 	: m_context(NULL),
 	m_contextNeeded(false),
 	m_story(story),
-	m_firstChar(firstChar)
+	m_firstChar(firstChar),
+	m_singlePar(false)
 {
 	for (int i = m_firstChar; i < m_story.length(); ++i)
 	{




More information about the scribus-commit mailing list