summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2014-12-19 19:25:46 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2014-12-19 23:33:31 +0100
commit3d4e1beacbaa84b3aa329a7ef09b59321729d898 (patch)
tree2413aba6a6fe8ad43bef28744d741b5047784280 /xmloff
parentf0471ea7550f42d2899951c06fc854ab9632ff74 (diff)
two references having same content
Change-Id: I2db8842411e39d7d100d0627f8c930bb3f633d77
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/shapeexport.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index 4162a566c4a4..d13062996cad 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -243,9 +243,9 @@ void XMLShapeExport::collectShapeAutoStyles(const uno::Reference< drawing::XShap
return;
}
sal_Int32 nZIndex = 0;
- uno::Reference< beans::XPropertySet > xSet( xShape, uno::UNO_QUERY );
- if( xSet.is() )
- xSet->getPropertyValue(msZIndex) >>= nZIndex;
+ uno::Reference< beans::XPropertySet > xPropSet(xShape, uno::UNO_QUERY);
+ if( xPropSet.is() )
+ xPropSet->getPropertyValue(msZIndex) >>= nZIndex;
ImplXMLShapeExportInfoVector& aShapeInfoVector = (*maCurrentShapesIter).second;
@@ -285,7 +285,6 @@ void XMLShapeExport::collectShapeAutoStyles(const uno::Reference< drawing::XShap
bool bIsEmptyPresObj = false;
- uno::Reference< beans::XPropertySet > xPropSet(xShape, uno::UNO_QUERY);
if ( aShapeInfo.xCustomShapeReplacement.is() )
xPropSet.clear();
@@ -513,7 +512,7 @@ void XMLShapeExport::collectShapeAutoStyles(const uno::Reference< drawing::XShap
{
try
{
- uno::Reference< table::XColumnRowRange > xRange( xSet->getPropertyValue( msModel ), uno::UNO_QUERY_THROW );
+ uno::Reference< table::XColumnRowRange > xRange( xPropSet->getPropertyValue( msModel ), uno::UNO_QUERY_THROW );
GetShapeTableExport()->collectTableAutoStyles( xRange );
}
catch(const uno::Exception&)