diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-25 14:34:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-25 14:34:19 +0000 |
commit | 18a1d996edde4845394090642ce03ec083c5761b (patch) | |
tree | b861fc443bde7f2c37426b7af5c2a7bbd850bb13 /sc/inc/document.hxx | |
parent | coverity#440858 Argument cannot be negative (diff) | |
download | core-18a1d996edde4845394090642ce03ec083c5761b.tar.gz core-18a1d996edde4845394090642ce03ec083c5761b.zip |
coverity#1266498 Uninitialized scalar variable
Change-Id: I203b9ff32cca1ca8d03911567290e534e082ee52
Diffstat (limited to 'sc/inc/document.hxx')
-rw-r--r-- | sc/inc/document.hxx | 16 |
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 |