include/com/sun/star/uno/Sequence.hxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit ad19d0c354887ac05561ca009a3f89cc62dfe9cf Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Fri Jan 7 10:01:46 2022 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Tue Jan 25 16:31:17 2022 +0100 uno sequences with different sizes are not equal This should often the case, and should be way faster than the UNO data comparison. Change-Id: Ied648d75779ef3aafd293c36906a1bab66bdeade Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128098 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lu...@collabora.com> (cherry picked from commit 9e7e63b8f812977b253b05db8a02dd0444de375a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128816 Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/include/com/sun/star/uno/Sequence.hxx b/include/com/sun/star/uno/Sequence.hxx index 7aa873e91223..23b12099791f 100644 --- a/include/com/sun/star/uno/Sequence.hxx +++ b/include/com/sun/star/uno/Sequence.hxx @@ -139,6 +139,8 @@ inline bool Sequence< E >::operator == ( const Sequence & rSeq ) const { if (_pSequence == rSeq._pSequence) return true; + if (_pSequence->nElements != rSeq._pSequence->nElements) + return false; const Type & rType = ::cppu::getTypeFavourUnsigned( this ); return ::uno_type_equalData( const_cast< Sequence * >( this ), rType.getTypeLibType(),