Kaydet (Commit) c8e0a0ce authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Work around bogus Mac GCC uninitialized warnings

Change-Id: I79731b0e8a991a96b87938749fa9898110fe2dde
üst 9ae07fcc
......@@ -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);
}
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment