summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-11 15:40:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-12 09:56:01 +0200
commit389da66dfc96d06c407bff156c4ea21e940c5e06 (patch)
tree2d1ebce6bdb2d952700ed5aaeb808289e9f72a7d /xmloff
parenta651dbcfca9e198b5c2561076961504586bc6bea (diff)
remove unused uno::Reference vars
found by temporarily marking Reference as SAL_WARN_UNUSED. Change-Id: I18809b62654467f890016adcc92576980ced393b Reviewed-on: https://gerrit.libreoffice.org/37511 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLAxisContext.cxx1
-rw-r--r--xmloff/source/chart/SchXMLChartContext.cxx1
-rw-r--r--xmloff/source/chart/SchXMLExport.cxx3
-rw-r--r--xmloff/source/chart/SchXMLSeries2Context.cxx1
-rw-r--r--xmloff/source/core/xmlexp.cxx3
-rw-r--r--xmloff/source/draw/animexp.cxx1
-rw-r--r--xmloff/source/draw/shapeexport.cxx3
-rw-r--r--xmloff/source/forms/layerexport.cxx1
-rw-r--r--xmloff/source/meta/MetaExportComponent.cxx3
-rw-r--r--xmloff/source/style/styleexp.cxx3
-rw-r--r--xmloff/source/style/xmlimppr.cxx2
11 files changed, 2 insertions, 20 deletions
diff --git a/xmloff/source/chart/SchXMLAxisContext.cxx b/xmloff/source/chart/SchXMLAxisContext.cxx
index 7a291d1e98eb..ddd913aabcd8 100644
--- a/xmloff/source/chart/SchXMLAxisContext.cxx
+++ b/xmloff/source/chart/SchXMLAxisContext.cxx
@@ -861,7 +861,6 @@ void SchXMLCategoriesContext::StartElement( const Reference< xml::sax::XAttribut
if( nPrefix == XML_NAMESPACE_TABLE &&
IsXMLToken( aLocalName, XML_CELL_RANGE_ADDRESS ) )
{
- Reference< chart2::XChartDocument > xNewDoc( GetImport().GetModel(), uno::UNO_QUERY );
mrAddress = xAttrList->getValueByIndex( i );
}
}
diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx
index 80512e58b0a3..e5db0423c011 100644
--- a/xmloff/source/chart/SchXMLChartContext.cxx
+++ b/xmloff/source/chart/SchXMLChartContext.cxx
@@ -1163,7 +1163,6 @@ void SchXMLChartContext::InitChart(
{
uno::Reference< chart::XChartDocument > xDoc = mrImportHelper.GetChartDocument();
SAL_WARN_IF( !xDoc.is(), "xmloff.chart", "No valid document!" );
- uno::Reference< frame::XModel > xModel (xDoc, uno::UNO_QUERY );
// Remove Title and Diagram ("De-InitNew")
uno::Reference< chart2::XChartDocument > xNewDoc( mrImportHelper.GetChartDocument(), uno::UNO_QUERY );
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index 085f949eac80..4332c02b6b81 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -2432,7 +2432,6 @@ void SchXMLExportHelper_Impl::exportAxes(
// secondary x axis
- Reference< chart::XSecondAxisTitleSupplier > xSecondTitleSupp( xDiagram, uno::UNO_QUERY );
xNewAxis = lcl_getAxis( xCooSys, XML_X, false );
if( xNewAxis.is() )
{
@@ -3057,8 +3056,6 @@ void SchXMLExportHelper_Impl::exportErrorBar( const Reference<beans::XPropertySe
{
if( bExportContent && nErrorBarStyle == chart::ErrorBarStyle::FROM_DATA )
{
- uno::Reference< chart2::XChartDocument > xNewDoc(mrExport.GetModel(), uno::UNO_QUERY);
-
// register data ranges for error bars for export in local table
::std::vector< Reference< chart2::data::XDataSequence > > aErrorBarSequences(
lcl_getErrorBarSequences( xErrorBarProp ));
diff --git a/xmloff/source/chart/SchXMLSeries2Context.cxx b/xmloff/source/chart/SchXMLSeries2Context.cxx
index 82e3a7c67da7..2f35804bedb6 100644
--- a/xmloff/source/chart/SchXMLSeries2Context.cxx
+++ b/xmloff/source/chart/SchXMLSeries2Context.cxx
@@ -100,7 +100,6 @@ void SchXMLDomain2Context::StartElement( const uno::Reference< xml::sax::XAttrib
if( nPrefix == XML_NAMESPACE_TABLE &&
IsXMLToken( aLocalName, XML_CELL_RANGE_ADDRESS ) )
{
- Reference< chart2::XChartDocument > xNewDoc( GetImport().GetModel(), uno::UNO_QUERY );
mrAddresses.push_back( xAttrList->getValueByIndex( i ));
}
}
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index 2df69a1c1a93..bfb18b8e0853 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -1480,8 +1480,7 @@ void SvXMLExport::ExportMeta_()
if (!xDocProps.is()) throw;
// update generator here
xDocProps->setGenerator(generator);
- SvXMLMetaExport * pMeta = new SvXMLMetaExport(*this, xDocProps);
- uno::Reference<xml::sax::XDocumentHandler> xMeta(pMeta);
+ rtl::Reference<SvXMLMetaExport> pMeta = new SvXMLMetaExport(*this, xDocProps);
pMeta->Export();
} else {
// office:meta
diff --git a/xmloff/source/draw/animexp.cxx b/xmloff/source/draw/animexp.cxx
index bbbc28214932..07a7520bc319 100644
--- a/xmloff/source/draw/animexp.cxx
+++ b/xmloff/source/draw/animexp.cxx
@@ -308,7 +308,6 @@ void XMLAnimationsExporter::collect( const Reference< XShape >& xShape, SvXMLExp
Reference< XPropertySet > xProps( xShape, UNO_QUERY );
if( xProps.is() )
{
- Reference< XPropertySetInfo > xInfo( xProps->getPropertySetInfo() );
AnimationEffect eEffect;
XMLEffectHint aEffect;
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index cf378dc65991..13e8ef9decde 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -1846,8 +1846,6 @@ void XMLShapeExport::ImpExportTextBoxShape(
const uno::Reference< beans::XPropertySet > xPropSet(xShape, uno::UNO_QUERY);
if(xPropSet.is())
{
- uno::Reference< beans::XPropertySetInfo > xPropSetInfo( xPropSet->getPropertySetInfo() );
-
// presentation attribute (if presentation)
bool bIsPresShape(false);
bool bIsEmptyPresObj(false);
@@ -2255,7 +2253,6 @@ void XMLShapeExport::ImpExportGraphicObjectShape(
if(xPropSet.is())
{
bool bIsEmptyPresObj = false;
- uno::Reference< beans::XPropertySetInfo > xPropSetInfo( xPropSet->getPropertySetInfo() );
// Transformation
ImpExportNewTrans(xPropSet, nFeatures, pRefPoint);
diff --git a/xmloff/source/forms/layerexport.cxx b/xmloff/source/forms/layerexport.cxx
index 41401fdb046c..657c8dadeed5 100644
--- a/xmloff/source/forms/layerexport.cxx
+++ b/xmloff/source/forms/layerexport.cxx
@@ -180,7 +180,6 @@ namespace xmloff
Sequence< ScriptEventDescriptor > aElementEvents;
Reference< XPropertySetInfo > xPropsInfo;
- Reference< XIndexAccess > xCurrentContainer;
for (sal_Int32 i=0; i<nElements; ++i)
{
try
diff --git a/xmloff/source/meta/MetaExportComponent.cxx b/xmloff/source/meta/MetaExportComponent.cxx
index e9d07e1bc726..4e57083a972a 100644
--- a/xmloff/source/meta/MetaExportComponent.cxx
+++ b/xmloff/source/meta/MetaExportComponent.cxx
@@ -165,8 +165,7 @@ void XMLMetaExportComponent::ExportMeta_()
OUString generator( ::utl::DocInfoHelper::GetGeneratorString() );
// update generator here
mxDocProps->setGenerator(generator);
- SvXMLMetaExport * pMeta = new SvXMLMetaExport(*this, mxDocProps);
- uno::Reference<xml::sax::XDocumentHandler> xMeta(pMeta);
+ rtl::Reference<SvXMLMetaExport> pMeta = new SvXMLMetaExport(*this, mxDocProps);
pMeta->Export();
} else {
SvXMLExport::ExportMeta_();
diff --git a/xmloff/source/style/styleexp.cxx b/xmloff/source/style/styleexp.cxx
index b0f145aa9707..8cb43a1decef 100644
--- a/xmloff/source/style/styleexp.cxx
+++ b/xmloff/source/style/styleexp.cxx
@@ -340,9 +340,6 @@ bool XMLStyleExport::exportDefaultStyle(
const OUString& rXMLFamily,
const rtl::Reference < SvXMLExportPropertyMapper >& rPropMapper )
{
- Reference< XPropertySetInfo > xPropSetInfo =
- xPropSet->getPropertySetInfo();
-
// <style:default-style ...>
GetExport().CheckAttrList();
diff --git a/xmloff/source/style/xmlimppr.cxx b/xmloff/source/style/xmlimppr.cxx
index 9aa54202ffd0..8bd2c30354a2 100644
--- a/xmloff/source/style/xmlimppr.cxx
+++ b/xmloff/source/style/xmlimppr.cxx
@@ -367,8 +367,6 @@ void SvXMLImportPropertyMapper::CheckSpecialContext(
OSL_ENSURE( rPropSet.is(), "need an XPropertySet" );
sal_Int32 nCount = aProperties.size();
- Reference< XPropertySetInfo > xInfo(rPropSet->getPropertySetInfo());
-
for( sal_Int32 i=0; i < nCount; i++ )
{
const XMLPropertyState& rProp = aProperties[i];