Kaydet (Commit) ddd5587d authored tarafından Arkadiy Illarionov's avatar Arkadiy Illarionov Kaydeden (comit) Noel Grandin

Drop lcl_SequenceToVector in favor of comphelper::sequenceToContainer

Change-Id: I86284553e1b0229d0b576ef1d92efd040b524a1b
Reviewed-on: https://gerrit.libreoffice.org/71825
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst acd8ee10
......@@ -196,14 +196,6 @@ bool lcl_tableOfRangeMatches(
(rRange.indexOf( rTableName ) != -1 ));
}
template< typename T >
::std::vector< T > lcl_SequenceToVector( const uno::Sequence< T > & rSequence )
{
::std::vector< T > aResult( rSequence.getLength());
::std::copy( rSequence.begin(), rSequence.end(), aResult.begin());
return aResult;
}
} // anonymous namespace
// class SchXMLTableContext
......@@ -298,7 +290,7 @@ void SchXMLTableContext::EndElement()
if( mbHasColumnPermutation )
{
SAL_WARN_IF( mbHasRowPermutation, "xmloff.chart", "mbHasColumnPermutation is true" );
::std::vector< sal_Int32 > aPermutation( lcl_SequenceToVector( maColumnPermutation ));
auto aPermutation( comphelper::sequenceToContainer<std::vector< sal_Int32 >>( maColumnPermutation ));
SAL_WARN_IF( aPermutation.empty(), "xmloff.chart", "aPermutation is NULL");
if( aPermutation.empty())
return;
......@@ -338,7 +330,7 @@ void SchXMLTableContext::EndElement()
}
else if( mbHasRowPermutation )
{
::std::vector< sal_Int32 > aPermutation( lcl_SequenceToVector( maRowPermutation ));
auto aPermutation( comphelper::sequenceToContainer<std::vector< sal_Int32 >>( maRowPermutation ));
SAL_WARN_IF( aPermutation.empty(), "xmloff.chart", "aPermutation is NULL");
if( aPermutation.empty())
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment