[Libreoffice-commits] core.git: sw/source
Stephan Bergmann
sbergman at redhat.com
Mon Feb 20 11:17:00 UTC 2017
sw/source/core/text/pormulti.cxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 520336fd6526a9a8ad416eec1674a5d7e8af2650
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Feb 20 12:15:48 2017 +0100
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
diff --git a/sw/source/core/text/pormulti.cxx b/sw/source/core/text/pormulti.cxx
index 9927020..52fdf93 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 )
More information about the Libreoffice-commits
mailing list