diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-28 21:13:49 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-29 10:31:18 +0200 |
commit | da5143365264aaa4634278fe13c36ba6b3039e47 (patch) | |
tree | 706bd3cb3ce660fe08be5e8b995e800ecb71a058 /codemaker | |
parent | 1a58461bfa3e980f3113a8a16c09cddda0606e7b (diff) |
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 <mike.kaganski@collabora.com>
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/source/cppumaker/cpputype.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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", |