diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-20 12:15:48 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-20 12:15:48 +0100 |
commit | 520336fd6526a9a8ad416eec1674a5d7e8af2650 (patch) | |
tree | 07787458122f17e4ed35b3767c606dc59a3215e2 /sw | |
parent | 711bc66ca34d3b1293a01fa7db16522b87055495 (diff) |
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
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/pormulti.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sw/source/core/text/pormulti.cxx b/sw/source/core/text/pormulti.cxx index 9927020edad7..52fdf931010b 100644 --- a/sw/source/core/text/pormulti.cxx +++ b/sw/source/core/text/pormulti.cxx @@ -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 ) |