From 390a56b5224fa43fd98dfbf09f5710bd40608bf3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 19 Jul 2012 10:23:25 +0200 Subject: Work around bogus Mac GCC uninitialized warnings Change-Id: I174b34835cc955c234a06618a48f61fc700e4400 --- drawinglayer/source/dumper/EnhancedShapeDumper.cxx | 4 ++-- drawinglayer/source/dumper/XShapeDumper.cxx | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'drawinglayer/source/dumper') diff --git a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx index 4d7c05641db6..a0ad98a53aae 100644 --- a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx +++ b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx @@ -1026,7 +1026,7 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeTextPathService(uno::Reference< { { uno::Any anotherAny = xPropSet->getPropertyValue("TextPath"); - sal_Bool bTextPath; + sal_Bool bTextPath = sal_Bool(); if(anotherAny >>= bTextPath) dumpTextPathAsAttribute(bTextPath); } @@ -1038,7 +1038,7 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeTextPathService(uno::Reference< } { uno::Any anotherAny = xPropSet->getPropertyValue("ScaleX"); - sal_Bool bScaleX; + sal_Bool bScaleX = sal_Bool(); if(anotherAny >>= bScaleX) dumpScaleXAsAttribute(bScaleX); } diff --git a/drawinglayer/source/dumper/XShapeDumper.cxx b/drawinglayer/source/dumper/XShapeDumper.cxx index eca83e073e48..ee588bed0e6f 100644 --- a/drawinglayer/source/dumper/XShapeDumper.cxx +++ b/drawinglayer/source/dumper/XShapeDumper.cxx @@ -1530,31 +1530,31 @@ void dumpShadowPropertiesService(uno::Reference< beans::XPropertySet > xPropSet, { { uno::Any anotherAny = xPropSet->getPropertyValue("Shadow"); - sal_Bool bShadow; + sal_Bool bShadow = sal_Bool(); if(anotherAny >>= bShadow) dumpShadowAsAttribute(bShadow, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("ShadowColor"); - sal_Int32 aShadowColor; + sal_Int32 aShadowColor = sal_Int32(); if(anotherAny >>= aShadowColor) dumpShadowColorAsAttribute(aShadowColor, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("ShadowTransparence"); - sal_Int32 aShadowTransparence; + sal_Int32 aShadowTransparence = sal_Int32(); if(anotherAny >>= aShadowTransparence) dumpShadowTransparenceAsAttribute(aShadowTransparence, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("ShadowXDistance"); - sal_Int32 aShadowXDistance; + sal_Int32 aShadowXDistance = sal_Int32(); if(anotherAny >>= aShadowXDistance) dumpShadowXDistanceAsAttribute(aShadowXDistance, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("ShadowYDistance"); - sal_Int32 aShadowYDistance; + sal_Int32 aShadowYDistance = sal_Int32(); if(anotherAny >>= aShadowYDistance) dumpShadowYDistanceAsAttribute(aShadowYDistance, xmlWriter); } -- cgit