diff --git a/sc/inc/fillinfo.hxx b/sc/inc/fillinfo.hxx
index e21a11c9a088..f25b8e9b0a74 100644
--- a/sc/inc/fillinfo.hxx
+++ b/sc/inc/fillinfo.hxx
@@ -177,6 +177,17 @@ struct RowInfo
RowInfo(const RowInfo&) = delete;
const RowInfo& operator=(const RowInfo&) = delete;
+ void clear() {
+ pCellInfo = nullptr;
+ nHeight = 0;
+ nRowNo = 0;
+ nRotMaxCol = 0;
+ bEmptyBack = false;
+ bAutoFilter = false;
+ bPivotButton = false;
+ bChanged = false;
+ }
+
CellInfo* pCellInfo;
sal_uInt16 nHeight;
diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx
index b150231460a0..922cc07e75d3 100644
--- a/sc/source/core/data/fillinfo.cxx
+++ b/sc/source/core/data/fillinfo.cxx
@@ -1088,7 +1088,9 @@ ScTableInfo::ScTableInfo(const SCSIZE capacity)
, mnArrCapacity(capacity)
, mbPageMode(false)
{
- memset(mpRowInfo.get(), 0, mnArrCapacity * sizeof(RowInfo));
+ for (SCSIZE i = 0; i != mnArrCapacity; ++i) {
+ mpRowInfo[i].clear();
+ }
}
ScTableInfo::~ScTableInfo()
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 0395b9902528..6f19d293e2a1 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -1572,7 +1572,7 @@ void WW8TabBandDesc::ReadNewShd(const sal_uInt8* pS, bool bVer67)
void WW8TabBandDesc::setcelldefaults(WW8_TCell *pCells, short nCols)
{
- memset( pCells, 0, nCols * sizeof( WW8_TCell ) );
+ memset( /*TODO*/static_cast<void *>(pCells), 0, nCols * sizeof( WW8_TCell ) );
}
namespace
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.