drawinglayer/source/dumper/EnhancedShapeDumper.cxx | 14 +++++++------- drawinglayer/source/dumper/XShapeDumper.cxx | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-)
New commits: commit 5a3eb92216d6865ad9c13f7f5ec357d82c8ce573 Author: Stephan Bergmann <sberg...@redhat.com> Date: Thu Jul 19 11:32:05 2012 +0200 Work around bogus Mac GCC uninitialized warnings Change-Id: Ia735ee75b75b3e2dafe610cf5cd513dd7d4b7392 diff --git a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx index 6b32984..e39dd9f 100644 --- a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx +++ b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx @@ -624,19 +624,19 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeHandleService(uno::Reference< b { { uno::Any anotherAny = xPropSet->getPropertyValue("MirroredX"); - sal_Bool bMirroredX; + sal_Bool bMirroredX = sal_Bool(); if(anotherAny >>= bMirroredX) dumpMirroredXAsAttribute(bMirroredX); } { uno::Any anotherAny = xPropSet->getPropertyValue("MirroredY"); - sal_Bool bMirroredY; + sal_Bool bMirroredY = sal_Bool(); if(anotherAny >>= bMirroredY) dumpMirroredYAsAttribute(bMirroredY); } { uno::Any anotherAny = xPropSet->getPropertyValue("Switched"); - sal_Bool bSwitched; + sal_Bool bSwitched = sal_Bool(); if(anotherAny >>= bSwitched) dumpSwitchedAsAttribute(bSwitched); } @@ -654,25 +654,25 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeHandleService(uno::Reference< b } { uno::Any anotherAny = xPropSet->getPropertyValue("RefX"); - sal_Int32 aRefX; + sal_Int32 aRefX = sal_Int32(); if(anotherAny >>= aRefX) dumpRefXAsAttribute(aRefX); } { uno::Any anotherAny = xPropSet->getPropertyValue("RefY"); - sal_Int32 aRefY; + sal_Int32 aRefY = sal_Int32(); if(anotherAny >>= aRefY) dumpRefYAsAttribute(aRefY); } { uno::Any anotherAny = xPropSet->getPropertyValue("RefAngle"); - sal_Int32 aRefAngle; + sal_Int32 aRefAngle = sal_Int32(); if(anotherAny >>= aRefAngle) dumpRefAngleAsAttribute(aRefAngle); } { uno::Any anotherAny = xPropSet->getPropertyValue("RefR"); - sal_Int32 aRefR; + sal_Int32 aRefR = sal_Int32(); if(anotherAny >>= aRefR) dumpRefRAsAttribute(aRefR); } diff --git a/drawinglayer/source/dumper/XShapeDumper.cxx b/drawinglayer/source/dumper/XShapeDumper.cxx index a81bc0b..e60879d 100644 --- a/drawinglayer/source/dumper/XShapeDumper.cxx +++ b/drawinglayer/source/dumper/XShapeDumper.cxx @@ -1454,19 +1454,19 @@ void dumpLinePropertiesService(uno::Reference< beans::XPropertySet > xPropSet, x } { uno::Any anotherAny = xPropSet->getPropertyValue("LineColor"); - sal_Int32 aLineColor; + sal_Int32 aLineColor = sal_Int32(); if(anotherAny >>= aLineColor) dumpLineColorAsAttribute(aLineColor, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("LineTransparence"); - sal_Int32 aLineTransparence; + sal_Int32 aLineTransparence = sal_Int32(); if(anotherAny >>= aLineTransparence) dumpLineTransparenceAsAttribute(aLineTransparence, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("LineWidth"); - sal_Int32 aLineWidth; + sal_Int32 aLineWidth = sal_Int32(); if(anotherAny >>= aLineWidth) dumpLineWidthAsAttribute(aLineWidth, xmlWriter); } @@ -1502,25 +1502,25 @@ void dumpLinePropertiesService(uno::Reference< beans::XPropertySet > xPropSet, x } { uno::Any anotherAny = xPropSet->getPropertyValue("LineStartCenter"); - sal_Bool bLineStartCenter; + sal_Bool bLineStartCenter = sal_Bool(); if(anotherAny >>= bLineStartCenter) dumpLineStartCenterAsAttribute(bLineStartCenter, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("LineStartWidth"); - sal_Int32 aLineStartWidth; + sal_Int32 aLineStartWidth = sal_Int32(); if(anotherAny >>= aLineStartWidth) dumpLineStartWidthAsAttribute(aLineStartWidth, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("LineEndCenter"); - sal_Bool bLineEndCenter; + sal_Bool bLineEndCenter = sal_Bool(); if(anotherAny >>= bLineEndCenter) dumpLineEndCenterAsAttribute(bLineEndCenter, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("LineEndWidth"); - sal_Int32 aLineEndWidth; + sal_Int32 aLineEndWidth = sal_Int32(); if(anotherAny >>= aLineEndWidth) dumpLineEndWidthAsAttribute(aLineEndWidth, xmlWriter); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits