diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-02-01 14:18:49 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-02-01 15:29:58 -0600 |
commit | 1e7dbe747e747d69516b238fa25d72b25e89776c (patch) | |
tree | 75bef58dd61134f61b5a6aa3356f4480bf29209d /cui | |
parent | fce501877738c55044d28dbab2765295301dfccd (diff) |
coverity#707724 : Uninitialized scalar field
Change-Id: I5514f0906d01f3a05a145a9f45ba2a599f85b26c
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/backgrnd.cxx | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx index 8a204798623a..d7c54392e6e9 100644 --- a/cui/source/tabpages/backgrnd.cxx +++ b/cui/source/tabpages/backgrnd.cxx @@ -72,14 +72,20 @@ struct SvxBackgroundTable_Impl SvxBrushItem* pCellBrush; SvxBrushItem* pRowBrush; SvxBrushItem* pTableBrush; - sal_uInt16 nCellWhich; - sal_uInt16 nRowWhich; - sal_uInt16 nTableWhich; - sal_uInt16 nActPos; - - SvxBackgroundTable_Impl() : - pCellBrush(NULL), pRowBrush(NULL), pTableBrush(NULL), - nCellWhich(0), nRowWhich(0), nTableWhich(0) {} + sal_uInt16 nCellWhich; + sal_uInt16 nRowWhich; + sal_uInt16 nTableWhich; + sal_uInt16 nActPos; + + SvxBackgroundTable_Impl() + : pCellBrush(NULL) + , pRowBrush(NULL) + , pTableBrush(NULL) + , nCellWhich(0) + , nRowWhich(0) + , nTableWhich(0) + , nActPos(0) + {} }; struct SvxBackgroundPara_Impl @@ -94,15 +100,18 @@ struct SvxBackgroundPara_Impl , pCharBrush(NULL) , nActPos(LISTBOX_ENTRY_NOTFOUND) {} + }; struct SvxBackgroundPage_Impl { Timer* pLoadTimer; - sal_Bool bIsImportDlgInExecute; + sal_Bool bIsImportDlgInExecute; - SvxBackgroundPage_Impl() : - pLoadTimer(NULL), bIsImportDlgInExecute(sal_False) {} + SvxBackgroundPage_Impl() + : pLoadTimer(NULL) + , bIsImportDlgInExecute(sal_False) + {} }; static inline sal_uInt8 lcl_PercentToTransparency(long nPercent) |