diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-19 09:14:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-19 09:33:29 +0200 |
commit | 2554efabb6d7cd2ad9f7cfdddd0712c25cdca1cd (patch) | |
tree | 1b8fd3940910ffcd328e16a53e208c099f67ab21 /chart2/source/model | |
parent | f7b5f477bfd942e0a1d8880c372635000d724dd7 (diff) |
use comphelper::containerToSequence
in chart2, we remove a local equivalent of the method
Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
Diffstat (limited to 'chart2/source/model')
33 files changed, 47 insertions, 46 deletions
diff --git a/chart2/source/model/filter/XMLFilter.cxx b/chart2/source/model/filter/XMLFilter.cxx index 1e06b3d7500f..ba2746d2f1b1 100644 --- a/chart2/source/model/filter/XMLFilter.cxx +++ b/chart2/source/model/filter/XMLFilter.cxx @@ -28,6 +28,7 @@ #include <comphelper/propertysetinfo.hxx> #include <comphelper/documentconstants.hxx> #include <cppuhelper/supportsservice.hxx> +#include <comphelper/sequence.hxx> #include <sot/storage.hxx> #include <osl/diagnose.h> @@ -117,7 +118,7 @@ uno::Reference< embed::XStorage > lcl_getWriteStorage( else aStorageArgs[0] <<= aMDHelper.URL; aStorageArgs[1] <<= (embed::ElementModes::READWRITE | embed::ElementModes::TRUNCATE); - aStorageArgs[2] <<= ::chart::ContainerHelper::ContainerToSequence( aPropertiesForStorage ); + aStorageArgs[2] <<= comphelper::containerToSequence( aPropertiesForStorage ); xStorage.set( xStorageFact->createInstanceWithArguments( aStorageArgs ), @@ -181,7 +182,7 @@ uno::Reference< embed::XStorage > lcl_getReadStorage( Sequence< uno::Any > aStorageArgs( 3 ); aStorageArgs[0] <<= xStream; aStorageArgs[1] <<= (embed::ElementModes::READ | embed::ElementModes::NOCREATE); - aStorageArgs[2] <<= ::chart::ContainerHelper::ContainerToSequence( aPropertiesForStorage ); + aStorageArgs[2] <<= comphelper::containerToSequence( aPropertiesForStorage ); xStorage.set( xStorageFact->createInstanceWithArguments( aStorageArgs ), uno::UNO_QUERY_THROW ); } diff --git a/chart2/source/model/main/Axis.cxx b/chart2/source/model/main/Axis.cxx index b8040e7b5648..10334a6e92cc 100644 --- a/chart2/source/model/main/Axis.cxx +++ b/chart2/source/model/main/Axis.cxx @@ -286,7 +286,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/main/BaseCoordinateSystem.cxx b/chart2/source/model/main/BaseCoordinateSystem.cxx index ee431a8fca6d..63dfa286a6e8 100644 --- a/chart2/source/model/main/BaseCoordinateSystem.cxx +++ b/chart2/source/model/main/BaseCoordinateSystem.cxx @@ -95,7 +95,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; @@ -298,7 +298,7 @@ void SAL_CALL BaseCoordinateSystem::removeChartType( const Reference< chart2::XC Sequence< Reference< chart2::XChartType > > SAL_CALL BaseCoordinateSystem::getChartTypes() throw (uno::RuntimeException, std::exception) { - return ContainerHelper::ContainerToSequence( m_aChartTypes ); + return comphelper::containerToSequence( m_aChartTypes ); } void SAL_CALL BaseCoordinateSystem::setChartTypes( const Sequence< Reference< chart2::XChartType > >& aChartTypes ) diff --git a/chart2/source/model/main/DataPoint.cxx b/chart2/source/model/main/DataPoint.cxx index c775c5ce8392..d3156a2cd3a6 100644 --- a/chart2/source/model/main/DataPoint.cxx +++ b/chart2/source/model/main/DataPoint.cxx @@ -61,7 +61,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/main/DataSeries.cxx b/chart2/source/model/main/DataSeries.cxx index 3cf89fa952d7..1a42a726646e 100644 --- a/chart2/source/model/main/DataSeries.cxx +++ b/chart2/source/model/main/DataSeries.cxx @@ -71,7 +71,7 @@ struct StaticDataSeriesInfoHelper : public rtl::StaticWithInit< ::cppu::OPropert ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; @@ -274,7 +274,7 @@ void SAL_CALL DataSeries::getFastPropertyValue // special handling for get. set is not possible for this property if( nHandle == DataSeriesProperties::PROP_DATASERIES_ATTRIBUTED_DATA_POINTS ) { - // ToDo: only add those property sets that are really modified + // TODO: only add those property sets that are really modified uno::Sequence< sal_Int32 > aSeq( m_aAttributedDataPoints.size()); sal_Int32 * pIndexArray = aSeq.getArray(); sal_Int32 i = 0; @@ -331,7 +331,7 @@ Reference< beans::XPropertySet > Sequence< Reference< chart2::data::XLabeledDataSequence > > aSequences; { MutexGuard aGuard( GetMutex() ); - aSequences = ContainerHelper::ContainerToSequence( m_aDataSequences ); + aSequences = comphelper::containerToSequence( m_aDataSequences ); } ::std::vector< Reference< chart2::data::XLabeledDataSequence > > aValuesSeries( @@ -440,7 +440,7 @@ Sequence< Reference< chart2::data::XLabeledDataSequence > > SAL_CALL DataSeries: throw (uno::RuntimeException, std::exception) { MutexGuard aGuard( GetMutex() ); - return ContainerHelper::ContainerToSequence( m_aDataSequences ); + return comphelper::containerToSequence( m_aDataSequences ); } // ____ XRegressionCurveContainer ____ @@ -491,7 +491,7 @@ uno::Sequence< uno::Reference< chart2::XRegressionCurve > > SAL_CALL DataSeries: throw (uno::RuntimeException, std::exception) { MutexGuard aGuard( GetMutex() ); - return ContainerHelper::ContainerToSequence( m_aRegressionCurves ); + return comphelper::containerToSequence( m_aRegressionCurves ); } void SAL_CALL DataSeries::setRegressionCurves( diff --git a/chart2/source/model/main/Diagram.cxx b/chart2/source/model/main/Diagram.cxx index 9f95cee79723..b0e5c0b04d2f 100644 --- a/chart2/source/model/main/Diagram.cxx +++ b/chart2/source/model/main/Diagram.cxx @@ -250,7 +250,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; @@ -561,7 +561,7 @@ uno::Sequence< uno::Reference< chart2::XCoordinateSystem > > SAL_CALL Diagram::g throw (uno::RuntimeException, std::exception) { MutexGuard aGuard( GetMutex() ); - return ContainerHelper::ContainerToSequence( m_aCoordSystems ); + return comphelper::containerToSequence( m_aCoordSystems ); } void SAL_CALL Diagram::setCoordinateSystems( diff --git a/chart2/source/model/main/FormattedString.cxx b/chart2/source/model/main/FormattedString.cxx index f30eb31a4098..13b54ada3de7 100644 --- a/chart2/source/model/main/FormattedString.cxx +++ b/chart2/source/model/main/FormattedString.cxx @@ -73,7 +73,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/main/GridProperties.cxx b/chart2/source/model/main/GridProperties.cxx index 5aa3f35301fe..7eb1350fd9e6 100644 --- a/chart2/source/model/main/GridProperties.cxx +++ b/chart2/source/model/main/GridProperties.cxx @@ -101,7 +101,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/main/Legend.cxx b/chart2/source/model/main/Legend.cxx index 9d22b6eb7ffb..1528dfc45968 100644 --- a/chart2/source/model/main/Legend.cxx +++ b/chart2/source/model/main/Legend.cxx @@ -157,7 +157,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/main/PageBackground.cxx b/chart2/source/model/main/PageBackground.cxx index ab3ceb0b3935..295dd0a72d9f 100644 --- a/chart2/source/model/main/PageBackground.cxx +++ b/chart2/source/model/main/PageBackground.cxx @@ -86,7 +86,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/main/StockBar.cxx b/chart2/source/model/main/StockBar.cxx index 0b05ee094fcc..347b83f11b37 100644 --- a/chart2/source/model/main/StockBar.cxx +++ b/chart2/source/model/main/StockBar.cxx @@ -60,7 +60,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/main/Title.cxx b/chart2/source/model/main/Title.cxx index 653abe45d1aa..20300b252d83 100644 --- a/chart2/source/model/main/Title.cxx +++ b/chart2/source/model/main/Title.cxx @@ -204,7 +204,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/main/Wall.cxx b/chart2/source/model/main/Wall.cxx index ef1b9e38988b..80093ed21c72 100644 --- a/chart2/source/model/main/Wall.cxx +++ b/chart2/source/model/main/Wall.cxx @@ -88,7 +88,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/template/AreaChartTypeTemplate.cxx b/chart2/source/model/template/AreaChartTypeTemplate.cxx index 1537c3fd5fea..da3770de9d87 100644 --- a/chart2/source/model/template/AreaChartTypeTemplate.cxx +++ b/chart2/source/model/template/AreaChartTypeTemplate.cxx @@ -92,7 +92,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/template/BarChartTypeTemplate.cxx b/chart2/source/model/template/BarChartTypeTemplate.cxx index 190ed2344876..d18f8996a41e 100644 --- a/chart2/source/model/template/BarChartTypeTemplate.cxx +++ b/chart2/source/model/template/BarChartTypeTemplate.cxx @@ -100,7 +100,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/template/BubbleChartType.cxx b/chart2/source/model/template/BubbleChartType.cxx index 4b494b7943bc..b732c64d6ffa 100644 --- a/chart2/source/model/template/BubbleChartType.cxx +++ b/chart2/source/model/template/BubbleChartType.cxx @@ -70,7 +70,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/template/BubbleChartTypeTemplate.cxx b/chart2/source/model/template/BubbleChartTypeTemplate.cxx index 0f4276d80bf3..9e4fcac4373d 100644 --- a/chart2/source/model/template/BubbleChartTypeTemplate.cxx +++ b/chart2/source/model/template/BubbleChartTypeTemplate.cxx @@ -72,7 +72,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/template/BubbleDataInterpreter.cxx b/chart2/source/model/template/BubbleDataInterpreter.cxx index f9e4d258320f..2465041abc65 100644 --- a/chart2/source/model/template/BubbleDataInterpreter.cxx +++ b/chart2/source/model/template/BubbleDataInterpreter.cxx @@ -149,13 +149,13 @@ chart2::InterpretedData SAL_CALL BubbleDataInterpreter::interpretDataSource( OSL_ASSERT( xSeries.is() ); Reference< data::XDataSink > xSink( xSeries, uno::UNO_QUERY ); OSL_ASSERT( xSink.is() ); - xSink->setData( ContainerHelper::ContainerToSequence( aNewData ) ); + xSink->setData( comphelper::containerToSequence( aNewData ) ); aSeriesVec.push_back( xSeries ); } Sequence< Sequence< Reference< XDataSeries > > > aSeries(1); - aSeries[0] = ContainerHelper::ContainerToSequence( aSeriesVec ); + aSeries[0] = comphelper::containerToSequence( aSeriesVec ); return InterpretedData( aSeries, xCategories ); } diff --git a/chart2/source/model/template/CandleStickChartType.cxx b/chart2/source/model/template/CandleStickChartType.cxx index 1d46372591d6..e4125fbe36b0 100644 --- a/chart2/source/model/template/CandleStickChartType.cxx +++ b/chart2/source/model/template/CandleStickChartType.cxx @@ -123,7 +123,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; @@ -243,7 +243,7 @@ uno::Sequence< OUString > SAL_CALL CandleStickChartType::getSupportedMandatoryRo aMandRoles.push_back( "values-last"); - return ContainerHelper::ContainerToSequence( aMandRoles ); + return comphelper::containerToSequence( aMandRoles ); } Sequence< OUString > SAL_CALL CandleStickChartType::getSupportedOptionalRoles() @@ -265,7 +265,7 @@ Sequence< OUString > SAL_CALL CandleStickChartType::getSupportedOptionalRoles() aOptRoles.push_back( "values-max"); } - return ContainerHelper::ContainerToSequence( aOptRoles ); + return comphelper::containerToSequence( aOptRoles ); } OUString SAL_CALL CandleStickChartType::getRoleOfSequenceForSeriesLabel() diff --git a/chart2/source/model/template/ChartType.cxx b/chart2/source/model/template/ChartType.cxx index 9ab9722615ad..bd6162828393 100644 --- a/chart2/source/model/template/ChartType.cxx +++ b/chart2/source/model/template/ChartType.cxx @@ -183,7 +183,7 @@ Sequence< Reference< chart2::XDataSeries > > SAL_CALL ChartType::getDataSeries() { SolarMutexGuard g; - return ContainerHelper::ContainerToSequence( m_aDataSeries ); + return comphelper::containerToSequence( m_aDataSeries ); } void SAL_CALL ChartType::setDataSeries( const Sequence< Reference< chart2::XDataSeries > >& aDataSeries ) diff --git a/chart2/source/model/template/ChartTypeManager.cxx b/chart2/source/model/template/ChartTypeManager.cxx index ad12cac7cffd..adee48ecad68 100644 --- a/chart2/source/model/template/ChartTypeManager.cxx +++ b/chart2/source/model/template/ChartTypeManager.cxx @@ -600,7 +600,7 @@ uno::Sequence< OUString > SAL_CALL ChartTypeManager::getAvailableServiceNames() } } - return ContainerHelper::ContainerToSequence( aServices ); + return comphelper::containerToSequence( aServices ); } // ____ XServiceInfo ____ diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx index 2fb754bcba81..9076b8f073d5 100644 --- a/chart2/source/model/template/ChartTypeTemplate.cxx +++ b/chart2/source/model/template/ChartTypeTemplate.cxx @@ -274,7 +274,7 @@ void SAL_CALL ChartTypeTemplate::changeDiagramData( { // interpret new data and re-use existing series Sequence< Reference< XDataSeries > > aFlatSeriesSeq( - ::chart::ContainerHelper::ContainerToSequence( DiagramHelper::getDataSeriesFromDiagram( xDiagram ))); + comphelper::containerToSequence( DiagramHelper::getDataSeriesFromDiagram( xDiagram ))); const sal_Int32 nFormerSeriesCount = aFlatSeriesSeq.getLength(); Reference< chart2::XDataInterpreter > xInterpreter( getDataInterpreter()); chart2::InterpretedData aData = diff --git a/chart2/source/model/template/ColumnChartType.cxx b/chart2/source/model/template/ColumnChartType.cxx index f11b2a1b77a7..c60b08bcba83 100644 --- a/chart2/source/model/template/ColumnChartType.cxx +++ b/chart2/source/model/template/ColumnChartType.cxx @@ -98,7 +98,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx index 7f36308fd1ab..25f0cc1d51a9 100644 --- a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx +++ b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx @@ -97,7 +97,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/template/DataInterpreter.cxx b/chart2/source/model/template/DataInterpreter.cxx index 9cc8c8e66a4f..18487e884eb3 100644 --- a/chart2/source/model/template/DataInterpreter.cxx +++ b/chart2/source/model/template/DataInterpreter.cxx @@ -132,7 +132,7 @@ InterpretedData SAL_CALL DataInterpreter::interpretDataSource( } Sequence< Sequence< Reference< XDataSeries > > > aSeries(1); - aSeries[0] = ContainerToSequence( aSeriesVec ); + aSeries[0] = comphelper::containerToSequence( aSeriesVec ); return InterpretedData( aSeries, xCategories ); } @@ -308,7 +308,7 @@ Reference< data::XDataSource > SAL_CALL DataInterpreter::mergeInterpretedData( } } - return Reference< data::XDataSource >( DataSourceHelper::createDataSource( ContainerToSequence( aResultVec ) ) ); + return Reference< data::XDataSource >( DataSourceHelper::createDataSource( comphelper::containerToSequence( aResultVec ) ) ); } // convenience methods diff --git a/chart2/source/model/template/LineChartType.cxx b/chart2/source/model/template/LineChartType.cxx index 553dce43169b..3c9e8ac85a1c 100644 --- a/chart2/source/model/template/LineChartType.cxx +++ b/chart2/source/model/template/LineChartType.cxx @@ -111,7 +111,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/template/LineChartTypeTemplate.cxx b/chart2/source/model/template/LineChartTypeTemplate.cxx index 42441a7f83ee..8c6175119699 100644 --- a/chart2/source/model/template/LineChartTypeTemplate.cxx +++ b/chart2/source/model/template/LineChartTypeTemplate.cxx @@ -116,7 +116,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/template/PieChartType.cxx b/chart2/source/model/template/PieChartType.cxx index 2a6ebf659e0a..f036ebc312ad 100644 --- a/chart2/source/model/template/PieChartType.cxx +++ b/chart2/source/model/template/PieChartType.cxx @@ -99,7 +99,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/template/PieChartTypeTemplate.cxx b/chart2/source/model/template/PieChartTypeTemplate.cxx index 3385df70a3c5..6fc096aef638 100644 --- a/chart2/source/model/template/PieChartTypeTemplate.cxx +++ b/chart2/source/model/template/PieChartTypeTemplate.cxx @@ -125,7 +125,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/template/ScatterChartType.cxx b/chart2/source/model/template/ScatterChartType.cxx index 106f88f67a07..83e23e3e482e 100644 --- a/chart2/source/model/template/ScatterChartType.cxx +++ b/chart2/source/model/template/ScatterChartType.cxx @@ -115,7 +115,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/template/ScatterChartTypeTemplate.cxx b/chart2/source/model/template/ScatterChartTypeTemplate.cxx index 35f974de2f02..1c675c903bde 100644 --- a/chart2/source/model/template/ScatterChartTypeTemplate.cxx +++ b/chart2/source/model/template/ScatterChartTypeTemplate.cxx @@ -118,7 +118,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; diff --git a/chart2/source/model/template/StockChartTypeTemplate.cxx b/chart2/source/model/template/StockChartTypeTemplate.cxx index 0e28bf73b4d0..88a51fc115c4 100644 --- a/chart2/source/model/template/StockChartTypeTemplate.cxx +++ b/chart2/source/model/template/StockChartTypeTemplate.cxx @@ -127,7 +127,7 @@ private: ::std::sort( aProperties.begin(), aProperties.end(), ::chart::PropertyNameLess() ); - return ::chart::ContainerHelper::ContainerToSequence( aProperties ); + return comphelper::containerToSequence( aProperties ); } }; @@ -394,7 +394,7 @@ void StockChartTypeTemplate::createChartTypes( } Reference< XChartTypeContainer > xCTCnt( rCoordSys[ 0 ], uno::UNO_QUERY_THROW ); - xCTCnt->setChartTypes( ::chart::ContainerHelper::ContainerToSequence(aChartTypeVec) ); + xCTCnt->setChartTypes( comphelper::containerToSequence(aChartTypeVec) ); } catch( const uno::Exception & ex ) { diff --git a/chart2/source/model/template/XYDataInterpreter.cxx b/chart2/source/model/template/XYDataInterpreter.cxx index 33175a41e9ef..a30a4459e4fa 100644 --- a/chart2/source/model/template/XYDataInterpreter.cxx +++ b/chart2/source/model/template/XYDataInterpreter.cxx @@ -133,13 +133,13 @@ chart2::InterpretedData SAL_CALL XYDataInterpreter::interpretDataSource( OSL_ASSERT( xSeries.is() ); Reference< data::XDataSink > xSink( xSeries, uno::UNO_QUERY ); OSL_ASSERT( xSink.is() ); - xSink->setData( ContainerHelper::ContainerToSequence( aNewData ) ); + xSink->setData( comphelper::containerToSequence( aNewData ) ); aSeriesVec.push_back( xSeries ); } Sequence< Sequence< Reference< XDataSeries > > > aSeries(1); - aSeries[0] = ContainerHelper::ContainerToSequence( aSeriesVec ); + aSeries[0] = comphelper::containerToSequence( aSeriesVec ); return InterpretedData( aSeries, xCategories ); } |