From 1f224711746295e6f15d1223792d69bf8971a79b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 21 Mar 2014 10:44:09 +0000 Subject: coverity#708728 Uninitialized scalar field Change-Id: Ic5e22da988f762641daf4cc07f3b2bd0caba36f9 --- xmlscript/source/xmldlg_imexp/exp_share.hxx | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'xmlscript') diff --git a/xmlscript/source/xmldlg_imexp/exp_share.hxx b/xmlscript/source/xmldlg_imexp/exp_share.hxx index bd3aacc13f1f..5a42ad3abdc1 100644 --- a/xmlscript/source/xmldlg_imexp/exp_share.hxx +++ b/xmlscript/source/xmldlg_imexp/exp_share.hxx @@ -53,12 +53,20 @@ struct Style OUString _id; - inline Style( short all_ ) SAL_THROW(()) - : _fontRelief( css::awt::FontRelief::NONE ) - , _fontEmphasisMark( css::awt::FontEmphasisMark::NONE ) - , _all( all_ ) - , _set( 0 ) - {} + Style( short all_ ) SAL_THROW(()) + : _backgroundColor(0) + , _textColor(0) + , _textLineColor(0) + , _border(0) + , _borderColor(0) + , _fontRelief(css::awt::FontRelief::NONE) + , _fontEmphasisMark(css::awt::FontEmphasisMark::NONE) + , _fillColor(0) + , _visualEffect(0) + , _all(all_) + , _set(0) + { + } css::uno::Reference< css::xml::sax::XAttributeList > createElement(); }; -- cgit