summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-25 14:34:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-25 14:34:19 +0000
commit18a1d996edde4845394090642ce03ec083c5761b (patch)
treeb861fc443bde7f2c37426b7af5c2a7bbd850bb13 /sc
parent05fcc0ff9f55e739871b3ad42b57935541f9a8a5 (diff)
coverity#1266498 Uninitialized scalar variable
Change-Id: I203b9ff32cca1ca8d03911567290e534e082ee52
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/document.hxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index baf8c9c42f2a..e992b0fd8b16 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -217,11 +217,11 @@ namespace com { namespace sun { namespace star {
#define SC_ASIANKERNING_INVALID 0xff
enum ScDocumentMode
- {
- SCDOCMODE_DOCUMENT,
- SCDOCMODE_CLIP,
- SCDOCMODE_UNDO
- };
+{
+ SCDOCMODE_DOCUMENT,
+ SCDOCMODE_CLIP,
+ SCDOCMODE_UNDO
+};
struct ScDocStat
{
@@ -229,6 +229,12 @@ struct ScDocStat
SCTAB nTableCount;
sal_uLong nCellCount;
sal_uInt16 nPageCount;
+ ScDocStat()
+ : nTableCount(0)
+ , nCellCount(0)
+ , nPageCount(0)
+ {
+ }
};
// DDE link modes