[Libreoffice-commits] core.git: extensions/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Thu Oct 8 14:01:28 UTC 2020
extensions/source/propctrlr/defaultforminspection.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 0591e107d9a5bb8c60e0693c1bad03004e8169e2
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Oct 8 14:24:06 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Oct 8 16:00:51 2020 +0200
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<com::sun::star::uno::Any> &)'
> 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 <noel.grandin at collabora.co.uk>
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
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<css::uno::Any> const&)
+ css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any> const&)
{
return cppu::acquire(new pcr::DefaultFormComponentInspectorModel(context));
}
More information about the Libreoffice-commits
mailing list