summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-07-19 11:57:19 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-07-19 11:57:19 +0200
commit042686d3ead3ed9aa1e70460c25d471c380b177b (patch)
tree8b01b9d24969a13bd5e6c881fd7f49e83bbf25e6 /drawinglayer
parent8cd92447d78c4fe9f93e1a6ee3031b4d8d5ec477 (diff)
Work around bogus Mac GCC uninitialized warnings
Change-Id: I04f64b11b484be8c997e1dbab8de35282fa64289
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/dumper/EnhancedShapeDumper.cxx6
-rw-r--r--drawinglayer/source/dumper/XShapeDumper.cxx14
2 files changed, 10 insertions, 10 deletions
diff --git a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx
index e39dd9fc3060..484a18e0b103 100644
--- a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx
+++ b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx
@@ -395,19 +395,19 @@ void EnhancedShapeDumper::dumpEnhancedCustomShapeGeometryService(uno::Reference<
}
{
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("TextRotateAngle");
- double aTextRotateAngle;
+ double aTextRotateAngle = double();
if(anotherAny >>= aTextRotateAngle)
dumpTextRotateAngleAsAttribute(aTextRotateAngle);
}
diff --git a/drawinglayer/source/dumper/XShapeDumper.cxx b/drawinglayer/source/dumper/XShapeDumper.cxx
index e60879d90419..f21157544925 100644
--- a/drawinglayer/source/dumper/XShapeDumper.cxx
+++ b/drawinglayer/source/dumper/XShapeDumper.cxx
@@ -1587,13 +1587,13 @@ void dumpShapeService(uno::Reference< beans::XPropertySet > xPropSet, xmlTextWri
uno::Reference< beans::XPropertySetInfo> xInfo = xPropSet->getPropertySetInfo();
{
uno::Any anotherAny = xPropSet->getPropertyValue("ZOrder");
- sal_Int32 aZOrder;
+ sal_Int32 aZOrder = sal_Int32();
if(anotherAny >>= aZOrder)
dumpZOrderAsAttribute(aZOrder, xmlWriter);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("LayerID");
- sal_Int32 aLayerID;
+ sal_Int32 aLayerID = sal_Int32();
if(anotherAny >>= aLayerID)
dumpLayerIDAsAttribute(aLayerID, xmlWriter);
}
@@ -1605,19 +1605,19 @@ void dumpShapeService(uno::Reference< beans::XPropertySet > xPropSet, xmlTextWri
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("Visible");
- sal_Bool bVisible;
+ sal_Bool bVisible = sal_Bool();
if(anotherAny >>= bVisible)
dumpVisibleAsAttribute(bVisible, xmlWriter);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("Printable");
- sal_Bool bPrintable;
+ sal_Bool bPrintable = sal_Bool();
if(anotherAny >>= bPrintable)
dumpPrintableAsAttribute(bPrintable, xmlWriter);
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("MoveProtect");
- sal_Bool bMoveProtect;
+ sal_Bool bMoveProtect = sal_Bool();
if(anotherAny >>= bMoveProtect)
dumpMoveProtectAsAttribute(bMoveProtect, xmlWriter);
}
@@ -1629,7 +1629,7 @@ void dumpShapeService(uno::Reference< beans::XPropertySet > xPropSet, xmlTextWri
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("SizeProtect");
- sal_Bool bSizeProtect;
+ sal_Bool bSizeProtect = sal_Bool();
if(anotherAny >>= bSizeProtect)
dumpSizeProtectAsAttribute(bSizeProtect, xmlWriter);
}
@@ -1641,7 +1641,7 @@ void dumpShapeService(uno::Reference< beans::XPropertySet > xPropSet, xmlTextWri
}
{
uno::Any anotherAny = xPropSet->getPropertyValue("NavigationOrder");
- sal_Int32 aNavigationOrder;
+ sal_Int32 aNavigationOrder = sal_Int32();
if(anotherAny >>= aNavigationOrder)
dumpNavigationOrderAsAttribute(aNavigationOrder, xmlWriter);
}