diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-12-21 17:10:28 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-12-21 21:26:24 +0100 |
commit | 856ea829c948dc88aa43a496c2050c608fce3430 (patch) | |
tree | 985296bcfa4e532b214b9bd6ece6f20c2fd80127 /sw/source/filter/ww8/ww8par6.cxx | |
parent | aaac7246ace4b21515ccc4532cd81bccab46bdb9 (diff) |
-Werror=class-memaccess (trunk towards GCC 9)
..."error: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial
type ‘struct WW8FlyPara’; use assignment instead"
Change-Id: I31d8169ea1a4e1aaf5bff55b359c280a034ea67f
Reviewed-on: https://gerrit.libreoffice.org/65552
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source/filter/ww8/ww8par6.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8par6.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx index f743d11cd7cf..a178f5c788d0 100644 --- a/sw/source/filter/ww8/ww8par6.cxx +++ b/sw/source/filter/ww8/ww8par6.cxx @@ -1636,8 +1636,19 @@ WW8FlyPara::WW8FlyPara(bool bIsVer67, const WW8FlyPara* pSrc /* = 0 */) memcpy( this, pSrc, sizeof( WW8FlyPara ) ); // Copy-Ctor else { - memset( this, 0, sizeof( WW8FlyPara ) ); // Default-Ctor + nSp26 = 0; + nSp27 = 0; + nSp45 = 0; + nSp28 = 0; + nLeMgn = 0; + nRiMgn = 0; + nUpMgn = 0; + nLoMgn = 0; + nSp29 = 0; nSp37 = 2; // Default: wrapping + bBorderLines = false; + bGrafApo = false; + mbVertSet = false; } bVer67 = bIsVer67; } |