diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-10-10 04:00:25 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-11-19 13:47:35 +0100 |
commit | a42e4d3e3e7e5d67a2f6fba8826604e0a213f77c (patch) | |
tree | 019e875da30c504b24d14e26c3d7728362c86da6 | |
parent | 7a3e2ca41fe0755ea60431850b53937a4da38a33 (diff) |
make it a normal variable
Change-Id: I75e38a02d48db938df2216bc245f34f363838042
-rw-r--r-- | chart2/source/view/inc/VDataSeries.hxx | 3 | ||||
-rw-r--r-- | chart2/source/view/main/VDataSeries.cxx | 10 |
2 files changed, 6 insertions, 7 deletions
diff --git a/chart2/source/view/inc/VDataSeries.hxx b/chart2/source/view/inc/VDataSeries.hxx index 1059c10afba4..805794e37a0e 100644 --- a/chart2/source/view/inc/VDataSeries.hxx +++ b/chart2/source/view/inc/VDataSeries.hxx @@ -190,9 +190,6 @@ public: //member private: //member ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDataSeries > m_xDataSeries; - ::com::sun::star::uno::Sequence< - ::com::sun::star::uno::Reference< - ::com::sun::star::chart2::data::XLabeledDataSequence > > m_aDataSequences; //all points given by the model data (here are not only the visible points meant) sal_Int32 m_nPointCount; diff --git a/chart2/source/view/main/VDataSeries.cxx b/chart2/source/view/main/VDataSeries.cxx index def2f6e6e978..72cefdebfbac 100644 --- a/chart2/source/view/main/VDataSeries.cxx +++ b/chart2/source/view/main/VDataSeries.cxx @@ -189,13 +189,15 @@ VDataSeries::VDataSeries( const uno::Reference< XDataSeries >& xDataSeries ) uno::Reference<data::XDataSource> xDataSource = uno::Reference<data::XDataSource>( xDataSeries, uno::UNO_QUERY ); - m_aDataSequences = xDataSource->getDataSequences(); + uno::Sequence< uno::Reference< + chart2::data::XLabeledDataSequence > > aDataSequences = + xDataSource->getDataSequences(); - for(sal_Int32 nN = m_aDataSequences.getLength();nN--;) + for(sal_Int32 nN = aDataSequences.getLength();nN--;) { - if(!m_aDataSequences[nN].is()) + if(!aDataSequences[nN].is()) continue; - uno::Reference<data::XDataSequence> xDataSequence( m_aDataSequences[nN]->getValues()); + uno::Reference<data::XDataSequence> xDataSequence( aDataSequences[nN]->getValues()); uno::Reference<beans::XPropertySet> xProp(xDataSequence, uno::UNO_QUERY ); if( xProp.is()) { |