diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-06-26 10:58:55 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-06-26 11:26:15 -0400 |
commit | 8192df38879694db77228b9b046b149d53448c0e (patch) | |
tree | f324710703eb1d10fc627bb96d39319efefea24b /chart2/source/tools/DataSeriesHelper.cxx | |
parent | 60e94d8982e2b3d2e92a178a7179142fb7fcc631 (diff) |
Clarify the code a little more.
Change-Id: Idc0ff4913695ade9543cd30511aff61d24e7c495
Diffstat (limited to 'chart2/source/tools/DataSeriesHelper.cxx')
-rw-r--r-- | chart2/source/tools/DataSeriesHelper.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/chart2/source/tools/DataSeriesHelper.cxx b/chart2/source/tools/DataSeriesHelper.cxx index a3b6cd5f4efd..3066402a76eb 100644 --- a/chart2/source/tools/DataSeriesHelper.cxx +++ b/chart2/source/tools/DataSeriesHelper.cxx @@ -237,8 +237,8 @@ Reference< chart2::data::XLabeledDataSequence > return aResultVec; } -Reference< chart2::data::XDataSource > - getDataSource( const Sequence< Reference< chart2::XDataSeries > > & aSeries ) +std::vector<Reference<css::chart2::data::XLabeledDataSequence> > +getAllDataSequences( const uno::Sequence<uno::Reference<chart2::XDataSeries> >& aSeries ) { ::std::vector< Reference< chart2::data::XLabeledDataSequence > > aSeqVec; @@ -253,8 +253,14 @@ Reference< chart2::data::XDataSource > } } + return aSeqVec; +} + +Reference< chart2::data::XDataSource > + getDataSource( const Sequence< Reference< chart2::XDataSeries > > & aSeries ) +{ return Reference< chart2::data::XDataSource >( - new DataSource( ContainerHelper::ContainerToSequence( aSeqVec ))); + new DataSource(ContainerHelper::ContainerToSequence(getAllDataSequences(aSeries)))); } namespace |