From 67f9178b5ab037434f3a980a8c162c70eca1ada7 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Mon, 19 Jun 2006 13:01:52 +0000 Subject: INTEGRATION: CWS warnings01 (1.3.16); FILE MERGED 2005/10/26 10:35:45 pl 1.3.16.2: #i55991# removed warnings for linux platform 2005/10/26 10:28:31 pl 1.3.16.1: #i55991# removed warnings for linux platform --- unotools/inc/unotools/servicehelper.hxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'unotools/inc') diff --git a/unotools/inc/unotools/servicehelper.hxx b/unotools/inc/unotools/servicehelper.hxx index edc73877221b..56611f35317c 100644 --- a/unotools/inc/unotools/servicehelper.hxx +++ b/unotools/inc/unotools/servicehelper.hxx @@ -4,9 +4,9 @@ * * $RCSfile: servicehelper.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: rt $ $Date: 2005-09-09 09:37:06 $ + * last change: $Author: hr $ $Date: 2006-06-19 14:01:52 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -76,7 +76,7 @@ classname* classname::getImplementation( uno::Reference< uno::XInterface > xInt { \ ::com::sun::star::uno::Reference< ::com::sun::star::lang::XUnoTunnel > xUT( xInt, ::com::sun::star::uno::UNO_QUERY ); \ if( xUT.is() ) \ - return (classname*)xUT->getSomething( classname::getUnoTunnelId() ); \ + return reinterpret_cast(sal::static_int_cast(xUT->getSomething( classname::getUnoTunnelId() ))); \ else \ return NULL; \ } @@ -88,7 +88,7 @@ sal_Int64 SAL_CALL classname::getSomething( const ::com::sun::star::uno::Sequenc if( rId.getLength() == 16 && 0 == rtl_compareMemory( getUnoTunnelId().getConstArray(), \ rId.getConstArray(), 16 ) ) \ { \ - return (sal_Int64)this; \ + return sal::static_int_cast(reinterpret_cast(this)); \ } \ return 0; \ } @@ -100,7 +100,7 @@ sal_Int64 SAL_CALL classname::getSomething( const ::com::sun::star::uno::Sequenc if( rId.getLength() == 16 && 0 == rtl_compareMemory( getUnoTunnelId().getConstArray(), \ rId.getConstArray(), 16 ) ) \ { \ - return (sal_Int64)this; \ + return sal::static_int_cast(reinterpret_cast(this)); \ } \ else \ { \ -- cgit