diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-07-19 11:32:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-07-19 11:32:05 +0200 |
commit | 5a3eb92216d6865ad9c13f7f5ec357d82c8ce573 (patch) | |
tree | 8a33b08139b97169ed19aa68d23319fadf003a98 /drawinglayer | |
parent | odf: export arcangleto commands in enhanced path (use drawooo namespace) (diff) | |
download | core-5a3eb92216d6865ad9c13f7f5ec357d82c8ce573.tar.gz core-5a3eb92216d6865ad9c13f7f5ec357d82c8ce573.zip |
Work around bogus Mac GCC uninitialized warnings
Change-Id: Ia735ee75b75b3e2dafe610cf5cd513dd7d4b7392
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/dumper/EnhancedShapeDumper.cxx | 14 | ||||
-rw-r--r-- | drawinglayer/source/dumper/XShapeDumper.cxx | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx index 6b3298444924..e39dd9fc3060 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 a81bc0b9e4c5..e60879d90419 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); } |