I've begun to replace some parts and had this when I've changed this: else if ( pType == ::getCppuType((const sal_uInt16*)0) ) into this: else if ( pType == cppu::UnoType<const sal_uInt16>::get() ) : cd /home/julien/compile-libreoffice/libreoffice/sfx2 && make -j 4 -rs [build CXX] sfx2/source/toolbox/tbxitem.cxx [build LOC] top level modules: sfx2 [build LOC] loaded modules: sfx2 In file included from /home/julien/compile-libreoffice/libreoffice/include/com/sun/star/uno/Any.h:25:0, from /home/julien/compile-libreoffice/libreoffice/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/uno/XInterface.hdl:9, from /home/julien/compile-libreoffice/libreoffice/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/lang/XComponent.hdl:10, from /home/julien/compile-libreoffice/libreoffice/workdir/UnoApiHeadersTarget/offapi/normal/com/sun/star/frame/XFrame.hdl:13, from /home/julien/compile-libreoffice/libreoffice/workdir/UnoApiHeadersTarget/offapi/normal/com/sun/star/frame/XFrame.hpp:8, from /home/julien/compile-libreoffice/libreoffice/sfx2/source/toolbox/tbxitem.cxx:27: /home/julien/compile-libreoffice/libreoffice/include/cppu/unotype.hxx: In instantiation of ‘static const com::sun::star::uno::Type& cppu::UnoType< <template-parameter-1-1> >::get() [with T = const short unsigned int]’: /home/julien/compile-libreoffice/libreoffice/sfx2/source/toolbox/tbxitem.cxx:550:69: required from here /home/julien/compile-libreoffice/libreoffice/include/cppu/unotype.hxx:267:60: error: invalid conversion from ‘const short unsigned int*’ to ‘const sal_Int16* {aka const short int*}’ [-fpermissive] return cppu_detail_getUnoType(static_cast< T * >(0)); ^ /home/julien/compile-libreoffice/libreoffice/include/cppu/unotype.hxx:133:1: error: initializing argument 1 of ‘const com::sun::star::uno::Type& cppu::detail::cppu_detail_getUnoType(const sal_Int16*)’ [-fpermissive] cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::sal_Int16 const *) { ^ make[1]: *** [/home/julien/compile-libreoffice/libreoffice/workdir/CxxObject/sfx2/source/toolbox/tbxitem.o] Erreur 1 make: *** [sfx2] Erreur 2
The other conversions were ok (I mean gcc hasn't complained). gcc (Debian 4.8.2-16) Any idea? Julien -- View this message in context: http://nabble.documentfoundation.org/Questions-about-getCppuType-tp4106361p4106451.html Sent from the Dev mailing list archive at Nabble.com. _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice