Drop some uses of css::uno::Sequence::getConstArray ...

where it was obsoleted by commits 2484de6728
(Remove non-const Sequence::begin()/end() in internal code, 2021-10-15) and
fb3c04bd19 (Drop non-const Sequence::operator[]
in internal code 2021-11-05).

Change-Id: I4ccc647bb794515c8c11f8dfd9a26563f4aa094b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166819
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Mike Kaganski
2024-04-30 06:20:50 +02:00
parent e82c9633e4
commit ea93670372
23 changed files with 140 additions and 224 deletions
+1 -3
View File
@@ -174,11 +174,9 @@ static bool equals( const TestData & rData1, const TestData & rData2 )
if (nLen == rData2.Sequence.getLength())
{
// once again by hand sequence ==
const TestElement * pElements1 = rData1.Sequence.getConstArray();
const TestElement * pElements2 = rData2.Sequence.getConstArray();
for ( ; nLen--; )
{
if (! equals( pElements1[nLen], pElements2[nLen] ))
if (!equals(rData1.Sequence[nLen], rData2.Sequence[nLen]))
{
check( false, "### sequence element did not match!" );
return false;