diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-03-14 17:37:03 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-03-14 17:37:24 -0500 |
commit | 0b9cc91b70e5848f8c34bcacf6871aaa3cf151a5 (patch) | |
tree | 423fc7ae0e150f62e7bf013ae036183f16097abd /chart2 | |
parent | mis-merge: a declaration was moved due to cppcheck, and also changed value (diff) | |
download | core-0b9cc91b70e5848f8c34bcacf6871aaa3cf151a5.tar.gz core-0b9cc91b70e5848f8c34bcacf6871aaa3cf151a5.zip |
mis-merge: setComplexColumnLabel now takes vector of uno::Any
Diffstat (limited to 'chart2')
-rwxr-xr-x | chart2/source/tools/InternalDataProvider.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx index b088a62df884..4d57e9ae258d 100755 --- a/chart2/source/tools/InternalDataProvider.cxx +++ b/chart2/source/tools/InternalDataProvider.cxx @@ -516,7 +516,7 @@ Reference< chart2::data::XDataSequence > InternalDataProvider::lcl_createDataSeq if( aRangeRepresentation.indexOf('{') >= 0 ) { ::std::vector< double > aNewData; - ::std::vector< OUString > aNewLabels; + ::std::vector< uno::Any > aNewLabels; OUString aToken; sal_Int32 nCategories = 0; sal_Int32 nIndex = 0; @@ -542,12 +542,12 @@ Reference< chart2::data::XDataSequence > InternalDataProvider::lcl_createDataSeq } else { - aNewLabels.push_back( aToken.replace('"', ' ').trim() ); + aNewLabels.push_back( uno::makeAny(aToken.replace('"', ' ').trim()) ); if( !nCategories && ( !m_aInternalData.getComplexColumnLabel(n).size() || - !m_aInternalData.getComplexColumnLabel(n).front().getLength() ) ) + !m_aInternalData.getComplexColumnLabel(n).front().hasValue() ) ) { - m_aInternalData.setComplexColumnLabel( n, aNewLabels ); + m_aInternalData.setComplexColumnLabel( n, aNewLabels ); bLabelSet = true; } else @@ -555,7 +555,7 @@ Reference< chart2::data::XDataSequence > InternalDataProvider::lcl_createDataSeq m_aInternalData.setComplexRowLabel(nCategories, aNewLabels); if(nCategories==1 && bLabelSet) { - ::std::vector< OUString > aLabels; + ::std::vector< uno::Any > aLabels; m_aInternalData.setComplexRowLabel( 0, m_aInternalData.getComplexColumnLabel( n ) ); m_aInternalData.setComplexColumnLabel( n, aLabels ); } |