summaryrefslogtreecommitdiff
path: root/oox
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 /oox
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 'oox')
-rw-r--r--oox/source/core/xmlfilterbase.cxx1
-rw-r--r--oox/source/drawingml/table/tablecell.cxx1
-rw-r--r--oox/source/drawingml/textparagraphpropertiescontext.cxx1
-rw-r--r--oox/source/export/chartexport.cxx5
4 files changed, 0 insertions, 8 deletions
diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx
index 8401dd7ce59d..04e58ab6f0af 100644
--- a/oox/source/core/xmlfilterbase.cxx
+++ b/oox/source/core/xmlfilterbase.cxx
@@ -242,7 +242,6 @@ void XmlFilterBase::checkDocumentProperties(const Reference<XDocumentProperties>
void XmlFilterBase::importDocumentProperties()
{
- Reference< XMultiServiceFactory > xFactory( getComponentContext()->getServiceManager(), UNO_QUERY );
MediaDescriptor aMediaDesc( getMediaDescriptor() );
Reference< XInputStream > xInputStream;
Reference< XComponentContext > xContext = getComponentContext();
diff --git a/oox/source/drawingml/table/tablecell.cxx b/oox/source/drawingml/table/tablecell.cxx
index ebc2ed731d5b..847633537b86 100644
--- a/oox/source/drawingml/table/tablecell.cxx
+++ b/oox/source/drawingml/table/tablecell.cxx
@@ -236,7 +236,6 @@ void TableCell::pushToXCell( const ::oox::core::XmlFilterBase& rFilterBase, cons
applyTableCellProperties( rxCell, *this );
TextCharacterProperties aTextStyleProps;
xAt->gotoStart( true );
- Reference< text::XTextRange > xStart( xAt, UNO_QUERY );
xAt->gotoEnd( true );
Reference< XPropertySet > xPropSet( rxCell, UNO_QUERY_THROW );
diff --git a/oox/source/drawingml/textparagraphpropertiescontext.cxx b/oox/source/drawingml/textparagraphpropertiescontext.cxx
index 9eb690191e28..d8071652da73 100644
--- a/oox/source/drawingml/textparagraphpropertiescontext.cxx
+++ b/oox/source/drawingml/textparagraphpropertiescontext.cxx
@@ -163,7 +163,6 @@ TextParagraphPropertiesContext::~TextParagraphPropertiesContext()
ContextHandlerRef TextParagraphPropertiesContext::onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs )
{
- Reference< XFastContextHandler > xRet;
switch( aElementToken )
{
case A_TOKEN( lnSpc ): // CT_TextSpacing
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 5d0ccdcca268..500a80143878 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -2211,7 +2211,6 @@ void ChartExport::exportCandleStickSeries(
Sequence< Reference< chart2::data::XLabeledDataSequence > > aSeqCnt(
xSource->getDataSequences());
- Reference< chart2::XChartDocument > xNewDoc( getModel(), uno::UNO_QUERY );
const char* sSeries[] = {"values-first","values-max","values-min","values-last",nullptr};
for( sal_Int32 idx = 0; sSeries[idx] != nullptr ; idx++ )
@@ -2260,7 +2259,6 @@ void ChartExport::exportCandleStickSeries(
void ChartExport::exportSeriesText( const Reference< chart2::data::XDataSequence > & xValueSeq )
{
FSHelperPtr pFS = GetFS();
- Reference< chart2::XChartDocument > xNewDoc( getModel(), uno::UNO_QUERY );
pFS->startElement( FSNS( XML_c, XML_tx ),
FSEND );
@@ -2296,7 +2294,6 @@ void ChartExport::exportSeriesText( const Reference< chart2::data::XDataSequence
void ChartExport::exportSeriesCategory( const Reference< chart2::data::XDataSequence > & xValueSeq )
{
FSHelperPtr pFS = GetFS();
- Reference< chart2::XChartDocument > xNewDoc( getModel(), uno::UNO_QUERY );
pFS->startElement( FSNS( XML_c, XML_cat ),
FSEND );
@@ -2339,7 +2336,6 @@ void ChartExport::exportSeriesCategory( const Reference< chart2::data::XDataSequ
void ChartExport::exportSeriesValues( const Reference< chart2::data::XDataSequence > & xValueSeq, sal_Int32 nValueType )
{
FSHelperPtr pFS = GetFS();
- Reference< chart2::XChartDocument > xNewDoc( getModel(), uno::UNO_QUERY );
pFS->startElement( FSNS( XML_c, nValueType ),
FSEND );
@@ -2449,7 +2445,6 @@ void ChartExport::InitPlotArea( )
xDiagramProperties->getPropertyValue("Dim3D") >>= mbIs3DChart;
- Reference< chart2::XChartDocument > xNewDoc( getModel(), uno::UNO_QUERY );
if( mbHasCategoryLabels && mxNewDiagram.is())
{
Reference< chart2::data::XLabeledDataSequence > xCategories( lcl_getCategories( mxNewDiagram ) );