[Libreoffice-commits] .: drawinglayer/source
Stephan Bergmann
sbergmann at kemper.freedesktop.org
Thu Jul 19 02:57:32 PDT 2012
drawinglayer/source/dumper/EnhancedShapeDumper.cxx | 6 +++---
drawinglayer/source/dumper/XShapeDumper.cxx | 14 +++++++-------
2 files changed, 10 insertions(+), 10 deletions(-)
New commits:
commit 042686d3ead3ed9aa1e70460c25d471c380b177b
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Jul 19 11:57:19 2012 +0200
Work around bogus Mac GCC uninitialized warnings
Change-Id: I04f64b11b484be8c997e1dbab8de35282fa64289
diff --git a/drawinglayer/source/dumper/EnhancedShapeDumper.cxx b/drawinglayer/source/dumper/EnhancedShapeDumper.cxx
index e39dd9f..484a18e 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 e60879d..f211575 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);
}
More information about the Libreoffice-commits
mailing list