summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-23 11:06:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-23 14:16:08 +0100
commit748c65b1f19d5e7426cf93c82bcc5d2de4fcf2b8 (patch)
tree2538b1a0e683e569fb3c869812f3fac35d46e749 /sc
parent612848165794c8ed982125aacae9e4c2467d0d7d (diff)
coverity#708104 Uninitialized scalar field
Change-Id: I3b35046fd10a779b3a0f6efeadf0ea7f4d3132da
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/inc/printfun.hxx15
-rw-r--r--sc/source/ui/view/preview.cxx3
2 files changed, 18 insertions, 0 deletions
diff --git a/sc/source/ui/inc/printfun.hxx b/sc/source/ui/inc/printfun.hxx
index 00e6c9620dfd..e2147cd19f75 100644
--- a/sc/source/ui/inc/printfun.hxx
+++ b/sc/source/ui/inc/printfun.hxx
@@ -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
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx
index 3380ebc4893d..0735c42de636 100644
--- a/sc/source/ui/view/preview.cxx
+++ b/sc/source/ui/view/preview.cxx
@@ -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 ),