diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-12-21 17:09:10 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-12-22 11:24:46 +0100 |
commit | b9a08acba62357e3bf04bc35c7f12948f0fd982a (patch) | |
tree | ab3026cc56cba749c788e2b872cbad5a3349f917 /sw | |
parent | 05044640531055c86b34f1c6ec8055c8a0ca3df8 (diff) |
-Werror=class-memaccess (trunk towards GCC 9)
..."error: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial
type ‘struct WW8TabBandDesc’; use assignment or value-initialization instead"
Change-Id: I5073f84c0aedc2790a4fbca0b190833e9fd2e6cf
Reviewed-on: https://gerrit.libreoffice.org/65551
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8par2.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx index 1a6080f70b6b..04f896ea268f 100644 --- a/sw/source/filter/ww8/ww8par2.cxx +++ b/sw/source/filter/ww8/ww8par2.cxx @@ -78,9 +78,13 @@ using namespace ::com::sun::star; -WW8TabBandDesc::WW8TabBandDesc() +WW8TabBandDesc::WW8TabBandDesc(): + pNextBand(nullptr), nGapHalf(0), mnDefaultLeft(0), mnDefaultTop(0), mnDefaultRight(0), + mnDefaultBottom(0), mbHasSpacing(false), nLineHeight(0), nRows(0), nCenter{}, nWidth{}, + nWwCols(0), nSwCols(0), bLEmptyCol(false), bREmptyCol(false), bCantSplit(false), + bCantSplit90(false), pTCs(nullptr), nOverrideSpacing{}, nOverrideValues{}, pSHDs(nullptr), + pNewSHDs(nullptr), bExist{}, nTransCell{} { - memset(this, 0, sizeof(*this)); for (sal_uInt16 & rn : maDirections) rn = 4; } |