extensions/source/propctrlr/defaultforminspection.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0591e107d9a5bb8c60e0693c1bad03004e8169e2
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Thu Oct 8 14:24:06 2020 +0200
Commit:     Stephan Bergmann <sberg...@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.gran...@collabora.co.uk>
    Reviewed-by: Stephan Bergmann <sberg...@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));
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to