diff options
Diffstat (limited to 'sw/source/core/access/acctable.cxx')
-rw-r--r-- | sw/source/core/access/acctable.cxx | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/sw/source/core/access/acctable.cxx b/sw/source/core/access/acctable.cxx index 9c39db2fc5e8..fd5d98487c97 100644 --- a/sw/source/core/access/acctable.cxx +++ b/sw/source/core/access/acctable.cxx @@ -29,6 +29,7 @@ #include <osl/mutex.hxx> #include <rtl/ustrbuf.hxx> +#include <algorithm> #include <list> #include <set> #include <com/sun/star/accessibility/AccessibleRole.hpp> @@ -409,19 +410,7 @@ sal_Bool SwAccessibleTableData_Impl::CompareExtents( if( maExtents.size() != rCmp.maExtents.size() ) return sal_False; - Int32PairList_Impl::const_iterator aIter( maExtents.begin() ); - Int32PairList_Impl::const_iterator aEndIter( maExtents.end() ); - Int32PairList_Impl::const_iterator aCmpIter( rCmp.maExtents.begin() ); - while( aIter != aEndIter ) - { - if( *aIter != *aCmpIter ) - return sal_False; - - ++aIter; - ++aCmpIter; - } - - return sal_True; + return ::std::equal(maExtents.begin(), maExtents.end(), rCmp.maExtents.begin()) ? sal_True : sal_False; } SwAccessibleTableData_Impl::SwAccessibleTableData_Impl( SwAccessibleMap& rAccMap, |