summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-05 09:37:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-07 14:16:59 +0000
commit4c6a30d53d9039066c368b9e9f6819e8594461cc (patch)
tree9a50b0efaadd223a80b77edd6a7a8184866891c3
parentfe73f2098ed9aa8bee1da5cba98353549384d642 (diff)
coverity#707985 Uninitialized scalar field
Change-Id: I1847b2900b513cc9b7b47767a15fb7e11d0abf26
-rw-r--r--sc/inc/fillinfo.hxx12
-rw-r--r--sc/source/core/data/fillinfo.cxx1
2 files changed, 2 insertions, 11 deletions
diff --git a/sc/inc/fillinfo.hxx b/sc/inc/fillinfo.hxx
index 45b4a643ead6..94bd6b19d23e 100644
--- a/sc/inc/fillinfo.hxx
+++ b/sc/inc/fillinfo.hxx
@@ -143,7 +143,7 @@ struct RowInfo : boost::noncopyable
{
CellInfo* pCellInfo;
- sal_uInt16 nHeight;
+ sal_uInt16 nHeight;
SCROW nRowNo;
SCCOL nRotMaxCol; // SC_ROTMAX_NONE, if nothing
@@ -152,12 +152,6 @@ struct RowInfo : boost::noncopyable
bool bAutoFilter:1;
bool bPivotButton:1;
bool bChanged:1; // TRUE, if not tested
-
- inline explicit RowInfo() : pCellInfo( 0 ) {}
-
-private:
- RowInfo( const RowInfo& );
- RowInfo& operator=( const RowInfo& );
};
struct ScTableInfo : boost::noncopyable
@@ -169,10 +163,6 @@ struct ScTableInfo : boost::noncopyable
explicit ScTableInfo();
~ScTableInfo();
-
-private:
- ScTableInfo( const ScTableInfo& );
- ScTableInfo& operator=( const ScTableInfo& );
};
#endif
diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx
index 0811290adf63..c2d36c08d3db 100644
--- a/sc/source/core/data/fillinfo.cxx
+++ b/sc/source/core/data/fillinfo.cxx
@@ -1120,6 +1120,7 @@ ScTableInfo::ScTableInfo()
, mnArrCount(0)
, mbPageMode(false)
{
+ memset(mpRowInfo, 0, ROWINFO_MAX*sizeof(RowInfo));
}
ScTableInfo::~ScTableInfo()