Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


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.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.