From da5143365264aaa4634278fe13c36ba6b3039e47 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Thu, 28 Oct 2021 21:13:49 +0300 Subject: Prepare for removal of non-const operator[] from Sequence in codemaker Change-Id: I058cf9ff4f7ce3f49f1dc3abb6b02268d208b225 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124350 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- codemaker/source/cppumaker/cpputype.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'codemaker') diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index be1b2c2b5cc2..221fee39acfc 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -3725,12 +3725,15 @@ void ServiceType::dumpHppFile( o << indent() << "::css::uno::Sequence< ::css::uno::Any > the_arguments(" << cons.parameters.size() << ");\n"; + o << indent() + << "::css::uno::Any* the_arguments_array = the_arguments.getArray();\n"; + std::vector< unoidl::SingleInterfaceBasedServiceEntity::Constructor:: Parameter >::size_type n = 0; for (const unoidl::SingleInterfaceBasedServiceEntity::Constructor::Parameter& j : cons.parameters) { - o << indent() << "the_arguments[" << n++ << "] "; + o << indent() << "the_arguments_array[" << n++ << "] "; OString param( codemaker::cpp::translateUnoToCppIdentifier( u2b(j.name), "param", -- cgit