coverity#708104 Uninitialized scalar field

Change-Id: I3b35046fd10a779b3a0f6efeadf0ea7f4d3132da
This commit is contained in:
Caolán McNamara
2014-05-23 11:06:34 +01:00
parent 6128481657
commit 748c65b1f1
2 changed files with 18 additions and 0 deletions

View File

@@ -83,6 +83,21 @@ struct ScPrintState // Save Variables from ScPrintFunc
long nTotalPages;
long nPageStart;
long nDocPages;
ScPrintState()
: nPrintTab(0)
, nStartCol(0)
, nStartRow(0)
, nEndCol(0)
, nEndRow(0)
, nZoom(0)
, nPagesX(0)
, nPagesY(0)
, nTabPages(0)
, nTotalPages(0)
, nPageStart(0)
, nDocPages(0)
{
}
};
class ScPageRowEntry

View File

@@ -89,10 +89,12 @@ ScPreview::ScPreview( Window* pParent, ScDocShell* pDocSh, ScPreviewShell* pView
Window( pParent ),
nPageNo( 0 ),
nZoom( 100 ),
nTabCount( 0 ),
nTabsTested( 0 ),
nPages(),
nFirstAttr(),
nTab( 0 ),
nTabPage( 0 ),
nTabStart( 0 ),
nDisplayStart( 0 ),
aDate( Date::SYSTEM ),
@@ -123,6 +125,7 @@ ScPreview::ScPreview( Window* pParent, ScDocShell* pDocSh, ScPreviewShell* pView
bPageMargin ( false ),
bColRulerMove( false ),
mbHasEmptyRangeTable(false),
nLeftPosition( 0 ),
mnScale( 0 ),
nColNumberButttonDown( 0 ),
nHeaderHeight ( 0 ),