[Libreoffice-commits] core.git: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Dec 22 10:25:06 UTC 2018
sw/source/filter/ww8/ww8par2.cxx | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit b9a08acba62357e3bf04bc35c7f12948f0fd982a
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Dec 21 17:09:10 2018 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sat Dec 22 11:24:46 2018 +0100
-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 at redhat.com>
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;
}
More information about the Libreoffice-commits
mailing list