From 0591e107d9a5bb8c60e0693c1bad03004e8169e2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 8 Oct 2020 14:24:06 +0200 Subject: Fix C++ UNO component constructor function signature ...broken by 1f8fbff65d91f1d8297b94dd67fffceb7475dce5 "loplugin:const* make some params and methods const", and reported by UBSan during CppunitTest_services: > ~/gcc/trunk/inst/lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../../include/c++/11.0.0/bits/invoke.h:60:14: runtime error: call to function extensions_propctrlr_DefaultFormComponentInspectorModel_get_implementation through pointer to incorrect function type 'com::sun::star::uno::XInterface *(*)(com::sun::star::uno::XComponentContext *, const com::sun::star::uno::Sequence &)' > extensions/source/propctrlr/defaultforminspection.cxx:211: note: extensions_propctrlr_DefaultFormComponentInspectorModel_get_implementation defined here Change-Id: Ic9b8df736169c478fa1184fc1bb30ae992ce1cff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104086 Tested-by: Jenkins Reviewed-by: Noel Grandin Reviewed-by: Stephan Bergmann --- extensions/source/propctrlr/defaultforminspection.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions') diff --git a/extensions/source/propctrlr/defaultforminspection.cxx b/extensions/source/propctrlr/defaultforminspection.cxx index 1b546c40fa66..809279330ae8 100644 --- a/extensions/source/propctrlr/defaultforminspection.cxx +++ b/extensions/source/propctrlr/defaultforminspection.cxx @@ -207,7 +207,7 @@ namespace pcr extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* extensions_propctrlr_DefaultFormComponentInspectorModel_get_implementation( - const css::uno::XComponentContext* context , css::uno::Sequence const&) + css::uno::XComponentContext* context , css::uno::Sequence const&) { return cppu::acquire(new pcr::DefaultFormComponentInspectorModel(context)); } -- cgit