Kaydet (Commit) 4c6a30d5 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#707985 Uninitialized scalar field

Change-Id: I1847b2900b513cc9b7b47767a15fb7e11d0abf26
üst fe73f209
...@@ -152,12 +152,6 @@ struct RowInfo : boost::noncopyable ...@@ -152,12 +152,6 @@ struct RowInfo : boost::noncopyable
bool bAutoFilter:1; bool bAutoFilter:1;
bool bPivotButton:1; bool bPivotButton:1;
bool bChanged:1; // TRUE, if not tested bool bChanged:1; // TRUE, if not tested
inline explicit RowInfo() : pCellInfo( 0 ) {}
private:
RowInfo( const RowInfo& );
RowInfo& operator=( const RowInfo& );
}; };
struct ScTableInfo : boost::noncopyable struct ScTableInfo : boost::noncopyable
...@@ -169,10 +163,6 @@ struct ScTableInfo : boost::noncopyable ...@@ -169,10 +163,6 @@ struct ScTableInfo : boost::noncopyable
explicit ScTableInfo(); explicit ScTableInfo();
~ScTableInfo(); ~ScTableInfo();
private:
ScTableInfo( const ScTableInfo& );
ScTableInfo& operator=( const ScTableInfo& );
}; };
#endif #endif
......
...@@ -1120,6 +1120,7 @@ ScTableInfo::ScTableInfo() ...@@ -1120,6 +1120,7 @@ ScTableInfo::ScTableInfo()
, mnArrCount(0) , mnArrCount(0)
, mbPageMode(false) , mbPageMode(false)
{ {
memset(mpRowInfo, 0, ROWINFO_MAX*sizeof(RowInfo));
} }
ScTableInfo::~ScTableInfo() ScTableInfo::~ScTableInfo()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment