From 389999abdb2d35f8641a6ff2e8984887166d39e2 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 8 Nov 2016 15:53:21 +0200 Subject: make comphelper::containerToSequence a little smarter So we don't have to specify the source and destination type as often. Change-Id: Id9e286417a1cb246d163cbc3c536b231a4a92624 Reviewed-on: https://gerrit.libreoffice.org/30700 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- xmloff/source/chart/SchXMLExport.cxx | 2 +- xmloff/source/style/prstylei.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index 6bc6a90c3d8e..88488d2a37ba 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -386,7 +386,7 @@ Sequence< Reference< chart2::data::XLabeledDataSequence > > lcl_getAllSeriesSequ } } - return comphelper::containerToSequence< Reference< chart2::data::XLabeledDataSequence > >( aContainer ); + return comphelper::containerToSequence( aContainer ); } Reference< chart2::data::XLabeledDataSequence > diff --git a/xmloff/source/style/prstylei.cxx b/xmloff/source/style/prstylei.cxx index 387ca191bb2d..7870e02f5150 100644 --- a/xmloff/source/style/prstylei.cxx +++ b/xmloff/source/style/prstylei.cxx @@ -427,7 +427,7 @@ void XMLPropStyleContext::CreateAndInsert( bool bOverwrite ) if (xPropState.is()) { nCount = aNameSet.size(); - Sequence aNames( comphelper::containerToSequence(aNameSet) ); + Sequence aNames( comphelper::containerToSequence(aNameSet) ); Sequence < PropertyState > aStates( xPropState->getPropertyStates(aNames) ); const PropertyState *pStates = aStates.getConstArray(); OUString* pNames = aNames.getArray(); -- cgit