diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-07-19 11:04:10 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-07-19 11:04:10 +0200 |
commit | c8e0a0ce4adaee2763d1a057a997fda058eaf6f2 (patch) | |
tree | 169691e2c1aa1b326cec2710e1ba896c33fbbe4b /drawinglayer | |
parent | 9ae07fcc7791ca9324f9e60b2b66d1023a69d9b4 (diff) |
Work around bogus Mac GCC uninitialized warnings
Change-Id: I79731b0e8a991a96b87938749fa9898110fe2dde
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/dumper/EnhancedShapeDumper.cxx | 26 | ||||
-rw-r--r-- | drawinglayer/source/dumper/XShapeDumper.cxx | 24 |
2 files changed, 25 insertions, 25 deletions
diff --git a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx index d24fea100420..6b3298444924 100644 --- a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx +++ b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx @@ -40,13 +40,13 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference { { uno::Any anotherAny = xPropSet->getPropertyValue("Extrusion"); - sal_Bool bExtrusion; + sal_Bool bExtrusion = sal_Bool(); if(anotherAny >>= bExtrusion) dumpExtrusionAsAttribute(bExtrusion); } { uno::Any anotherAny = xPropSet->getPropertyValue("Brightness"); - double aBrightness; + double aBrightness = double(); if(anotherAny >>= aBrightness) dumpBrightnessAsAttribute(aBrightness); } @@ -58,43 +58,43 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference } { uno::Any anotherAny = xPropSet->getPropertyValue("Diffusion"); - double aDiffusion; + double aDiffusion = double(); if(anotherAny >>= aDiffusion) dumpDiffusionAsAttribute(aDiffusion); } { uno::Any anotherAny = xPropSet->getPropertyValue("NumberOfLineSegments"); - sal_Int32 aNumberOfLineSegments; + sal_Int32 aNumberOfLineSegments = sal_Int32(); if(anotherAny >>= aNumberOfLineSegments) dumpNumberOfLineSegmentsAsAttribute(aNumberOfLineSegments); } { uno::Any anotherAny = xPropSet->getPropertyValue("LightFace"); - sal_Bool bLightFace; + sal_Bool bLightFace = sal_Bool(); if(anotherAny >>= bLightFace) dumpLightFaceAsAttribute(bLightFace); } { uno::Any anotherAny = xPropSet->getPropertyValue("FirstLightHarsh"); - sal_Bool bFirstLightHarsh; + sal_Bool bFirstLightHarsh = sal_Bool(); if(anotherAny >>= bFirstLightHarsh) dumpFirstLightHarshAsAttribute(bFirstLightHarsh); } { uno::Any anotherAny = xPropSet->getPropertyValue("SecondLightHarsh"); - sal_Bool bSecondLightHarsh; + sal_Bool bSecondLightHarsh = sal_Bool(); if(anotherAny >>= bSecondLightHarsh) dumpSecondLightHarshAsAttribute(bSecondLightHarsh); } { uno::Any anotherAny = xPropSet->getPropertyValue("FirstLightLevel"); - double aFirstLightLevel; + double aFirstLightLevel = double(); if(anotherAny >>= aFirstLightLevel) dumpFirstLightLevelAsAttribute(aFirstLightLevel); } { uno::Any anotherAny = xPropSet->getPropertyValue("SecondLightLevel"); - double aSecondLightLevel; + double aSecondLightLevel = double(); if(anotherAny >>= aSecondLightLevel) dumpSecondLightLevelAsAttribute(aSecondLightLevel); } @@ -112,7 +112,7 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference } { uno::Any anotherAny = xPropSet->getPropertyValue("Metal"); - sal_Bool bMetal; + sal_Bool bMetal = sal_Bool(); if(anotherAny >>= bMetal) dumpMetalAsAttribute(bMetal); } @@ -136,7 +136,7 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference } { uno::Any anotherAny = xPropSet->getPropertyValue("Shininess"); - double aShininess; + double aShininess = double(); if(anotherAny >>= aShininess) dumpShininessAsAttribute(aShininess); } @@ -148,7 +148,7 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference } { uno::Any anotherAny = xPropSet->getPropertyValue("Specularity"); - double aSpecularity; + double aSpecularity = double(); if(anotherAny >>= aSpecularity) dumpSpecularityAsAttribute(aSpecularity); } @@ -172,7 +172,7 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeExtrusionService(uno::Reference } { uno::Any anotherAny = xPropSet->getPropertyValue("ExtrusionColor"); - sal_Bool bExtrusionColor; + sal_Bool bExtrusionColor = sal_Bool(); if(anotherAny >>= bExtrusionColor) dumpExtrusionColorAsAttribute(bExtrusionColor); } diff --git a/drawinglayer/source/dumper/XShapeDumper.cxx b/drawinglayer/source/dumper/XShapeDumper.cxx index 37bf0f45e28f..a81bc0b9e4c5 100644 --- a/drawinglayer/source/dumper/XShapeDumper.cxx +++ b/drawinglayer/source/dumper/XShapeDumper.cxx @@ -1294,13 +1294,13 @@ void dumpFillPropertiesService(uno::Reference< beans::XPropertySet > xPropSet, x } { uno::Any anotherAny = xPropSet->getPropertyValue("FillColor"); - sal_Int32 aColor; + sal_Int32 aColor = sal_Int32(); if(anotherAny >>= aColor) dumpFillColorAsAttribute(aColor, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("FillTransparence"); - sal_Int32 aTransparence; + sal_Int32 aTransparence = sal_Int32(); if(anotherAny >>= aTransparence) dumpFillTransparenceAsAttribute(aTransparence, xmlWriter); } @@ -1342,7 +1342,7 @@ void dumpFillPropertiesService(uno::Reference< beans::XPropertySet > xPropSet, x } { uno::Any anotherAny = xPropSet->getPropertyValue("FillBackground"); - sal_Bool bFillBackground; + sal_Bool bFillBackground = sal_Bool(); if(anotherAny >>= bFillBackground) dumpFillBackgroundAsAttribute(bFillBackground, xmlWriter); } @@ -1366,25 +1366,25 @@ void dumpFillPropertiesService(uno::Reference< beans::XPropertySet > xPropSet, x } { uno::Any anotherAny = xPropSet->getPropertyValue("FillBitmapPositionOffsetX"); - sal_Int32 aBitmapPositionOffsetX; + sal_Int32 aBitmapPositionOffsetX = sal_Int32(); if(anotherAny >>= aBitmapPositionOffsetX) dumpFillBitmapPositionOffsetXAsAttribute(aBitmapPositionOffsetX, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("FillBitmapPositionOffsetY"); - sal_Int32 aBitmapPositionOffsetY; + sal_Int32 aBitmapPositionOffsetY = sal_Int32(); if(anotherAny >>= aBitmapPositionOffsetY) dumpFillBitmapPositionOffsetYAsAttribute(aBitmapPositionOffsetY, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("FillBitmapOffsetX"); - sal_Int32 aBitmapOffsetX; + sal_Int32 aBitmapOffsetX = sal_Int32(); if(anotherAny >>= aBitmapOffsetX) dumpFillBitmapOffsetXAsAttribute(aBitmapOffsetX, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("FillBitmapOffsetY"); - sal_Int32 aBitmapOffsetY; + sal_Int32 aBitmapOffsetY = sal_Int32(); if(anotherAny >>= aBitmapOffsetY) dumpFillBitmapOffsetYAsAttribute(aBitmapOffsetY, xmlWriter); } @@ -1396,19 +1396,19 @@ void dumpFillPropertiesService(uno::Reference< beans::XPropertySet > xPropSet, x } { uno::Any anotherAny = xPropSet->getPropertyValue("FillBitmapLogicalSize"); - sal_Bool bBitmapLogicalSize; + sal_Bool bBitmapLogicalSize = sal_Bool(); if(anotherAny >>= bBitmapLogicalSize) dumpFillBitmapLogicalSizeAsAttribute(bBitmapLogicalSize, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("FillBitmapSizeX"); - sal_Int32 aBitmapSizeX; + sal_Int32 aBitmapSizeX = sal_Int32(); if(anotherAny >>= aBitmapSizeX) dumpFillBitmapSizeXAsAttribute(aBitmapSizeX, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("FillBitmapSizeY"); - sal_Int32 aBitmapSizeY; + sal_Int32 aBitmapSizeY = sal_Int32(); if(anotherAny >>= aBitmapSizeY) dumpFillBitmapSizeYAsAttribute(aBitmapSizeY, xmlWriter); } @@ -1420,13 +1420,13 @@ void dumpFillPropertiesService(uno::Reference< beans::XPropertySet > xPropSet, x } { uno::Any anotherAny = xPropSet->getPropertyValue("FillBitmapStretch"); - sal_Bool bBitmapStretch; + sal_Bool bBitmapStretch = sal_Bool(); if(anotherAny >>= bBitmapStretch) dumpFillBitmapStretchAsAttribute(bBitmapStretch, xmlWriter); } { uno::Any anotherAny = xPropSet->getPropertyValue("FillBitmapTile"); - sal_Bool bBitmapTile; + sal_Bool bBitmapTile = sal_Bool(); if(anotherAny >>= bBitmapTile) dumpFillBitmapTileAsAttribute(bBitmapTile, xmlWriter); } |