diff options
Diffstat (limited to 'xmloff/source/chart/SchXMLTableContext.cxx')
-rw-r--r-- | xmloff/source/chart/SchXMLTableContext.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmloff/source/chart/SchXMLTableContext.cxx b/xmloff/source/chart/SchXMLTableContext.cxx index 6e5e7f068b01..61eb6c400c13 100644 --- a/xmloff/source/chart/SchXMLTableContext.cxx +++ b/xmloff/source/chart/SchXMLTableContext.cxx @@ -277,9 +277,9 @@ void SchXMLTableContext::endFastElement(sal_Int32 ) if( mbHasColumnPermutation ) { SAL_WARN_IF( mbHasRowPermutation, "xmloff.chart", "mbHasColumnPermutation is true" ); - auto aPermutation( comphelper::sequenceToContainer<std::vector< sal_Int32 >>( maColumnPermutation )); - SAL_WARN_IF( aPermutation.empty(), "xmloff.chart", "aPermutation is NULL"); - if( aPermutation.empty()) + const auto & aPermutation( maColumnPermutation ); + SAL_WARN_IF( !aPermutation.hasElements(), "xmloff.chart", "aPermutation is NULL"); + if( !aPermutation.hasElements()) return; // permute the values of all rows according to aPermutation @@ -316,9 +316,9 @@ void SchXMLTableContext::endFastElement(sal_Int32 ) } else if( mbHasRowPermutation ) { - auto aPermutation( comphelper::sequenceToContainer<std::vector< sal_Int32 >>( maRowPermutation )); - SAL_WARN_IF( aPermutation.empty(), "xmloff.chart", "aPermutation is NULL"); - if( aPermutation.empty()) + const auto & aPermutation( maRowPermutation ); + SAL_WARN_IF( !aPermutation.hasElements(), "xmloff.chart", "aPermutation is NULL"); + if( !aPermutation.hasElements()) return; bool bModified = false; |