[Libreoffice-commits] .: writerfilter/source
Caolán McNamara
caolan at kemper.freedesktop.org
Tue Apr 17 12:12:23 PDT 2012
writerfilter/source/dmapper/GraphicHelpers.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit b92de73fdd81acc5fdb92005af34b3ce9f8ed37b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Apr 17 20:11:20 2012 +0100
WaE: MacOSX itemZOrder may be unused uninitialized
diff --git a/writerfilter/source/dmapper/GraphicHelpers.cxx b/writerfilter/source/dmapper/GraphicHelpers.cxx
index 819dc6f..551c5e9 100644
--- a/writerfilter/source/dmapper/GraphicHelpers.cxx
+++ b/writerfilter/source/dmapper/GraphicHelpers.cxx
@@ -240,7 +240,7 @@ sal_Int32 GraphicZOrderHelper::findZOrder( sal_Int32 relativeHeight )
{
if( items.empty())
return 0;
- sal_Int32 itemZOrder;
+ sal_Int32 itemZOrder(0);
--it;
if( it->second->getPropertyValue(PropertyNameSupplier::GetPropertyNameSupplier()
.GetName( PROP_Z_ORDER )) >>= itemZOrder )
@@ -248,7 +248,7 @@ sal_Int32 GraphicZOrderHelper::findZOrder( sal_Int32 relativeHeight )
}
else
{
- sal_Int32 itemZOrder;
+ sal_Int32 itemZOrder(0);
if( it->second->getPropertyValue(PropertyNameSupplier::GetPropertyNameSupplier()
.GetName( PROP_Z_ORDER )) >>= itemZOrder )
return itemZOrder; // before the item
More information about the Libreoffice-commits
mailing list