Kaydet (Commit) 520336fd authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Better make the zero-initialization more explicit

...if initializing these members is necessary at all; a bit hard to tell from
the code.

Change-Id: I521eecca119b4f5150bdb7a1a93f4638e0186210
üst 711bc66c
......@@ -257,11 +257,16 @@ SwDoubleLinePortion::SwDoubleLinePortion(SwDoubleLinePortion& rDouble, sal_Int32
// internet style, which contains the 2-line-attribute.
SwDoubleLinePortion::SwDoubleLinePortion(const SwMultiCreator& rCreate, sal_Int32 nEnd)
: SwMultiPortion(nEnd)
, pBracket(new SwBracket())
, pBracket(new SwBracket)
, nLineDiff(0)
, nBlank1(0)
, nBlank2(0)
{
pBracket->nAscent = 0;
pBracket->nHeight = 0;
pBracket->nPreWidth = 0;
pBracket->nPostWidth = 0;
SetDouble();
const SvxTwoLinesItem* pTwo = static_cast<const SvxTwoLinesItem*>(rCreate.pItem);
if( pTwo )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment