diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-01-19 10:11:59 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-01-19 10:11:59 +0200 |
commit | fee08317d9d57de897dcf7a7201062fc3309a8de (patch) | |
tree | cc67c2a726280ee553f7b1e215219390b86481d6 /oox | |
parent | e1b85e77b15a02d40049994e9829a0e3b921850c (diff) |
WaE: variable is used uninitialized whenever 'for' loop exits
Change-Id: I5e3db7eaf284718a1e313401b18ee6665d2837a1
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/drawingml.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index ebcfb165cb54..6c03b22fa541 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -193,7 +193,7 @@ void DrawingML::WriteSolidFill( Reference< XPropertySet > rXPropSet ) // get InteropGrabBag and search the relevant attributes OUString sColorFillScheme; - sal_uInt32 nOriginalColor; + sal_uInt32 nOriginalColor = 0; Sequence< PropertyValue > aStyleProperties; if ( GetProperty( rXPropSet, "InteropGrabBag" ) ) { @@ -217,7 +217,7 @@ void DrawingML::WriteSolidFill( Reference< XPropertySet > rXPropSet ) WriteSolidFill( sColorFillScheme ); else if ( aStyleProperties.hasElements() ) { - sal_uInt32 nThemeColor; + sal_uInt32 nThemeColor = 0; for( sal_Int32 i=0; i < aStyleProperties.getLength(); ++i ) if( aStyleProperties[i].Name == "Color" ) { |