diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 10:36:38 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 10:36:38 +0000 |
commit | d198f04e58827116a4a2d84147df1840aa841ca8 (patch) | |
tree | a49a8b64a3ac9755772907e808cf8dd808bc0a83 | |
parent | e2da7701a6ce0b71b98fa82a01bd84ca80c8cdc0 (diff) |
INTEGRATION: CWS warnings01 (1.5.32); FILE MERGED
2005/11/16 15:20:39 pl 1.5.32.2: #i55991# removed warnings
2005/10/28 14:48:44 cd 1.5.32.1: #i55991# Warning free code changes for gcc
-rw-r--r-- | framework/source/uielement/constitemcontainer.cxx | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/framework/source/uielement/constitemcontainer.cxx b/framework/source/uielement/constitemcontainer.cxx index f4e6e6f8ee46..bcd884a60830 100644 --- a/framework/source/uielement/constitemcontainer.cxx +++ b/framework/source/uielement/constitemcontainer.cxx @@ -4,9 +4,9 @@ * * $RCSfile: constitemcontainer.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2005-09-09 01:52:17 $ + * last change: $Author: hr $ $Date: 2006-06-19 11:36:38 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -87,11 +87,13 @@ namespace framework /** * The class which implements the PropertySetInfo interface. */ - +extern "C" +{ static int SAL_CALL compare_OUString_Property_Impl( const void *arg1, const void *arg2 ) SAL_THROW( () ) { return ((OUString *)arg1)->compareTo( ((Property *)arg2)->Name ); } +} class OPropertySetHelperInfo_Impl : public WeakImplHelper1< ::com::sun::star::beans::XPropertySetInfo > @@ -315,7 +317,7 @@ sal_Int64 ConstItemContainer::getSomething( const ::com::sun::star::uno::Sequenc { if( ( rIdentifier.getLength() == 16 ) && ( 0 == rtl_compareMemory( ConstItemContainer::GetUnoTunnelId().getConstArray(), rIdentifier.getConstArray(), 16 ) ) ) { - return (sal_Int64)this; + return reinterpret_cast< sal_Int64 >( this ); } return 0; } @@ -339,7 +341,8 @@ const Sequence< sal_Int8 >& ConstItemContainer::GetUnoTunnelId() throw() ConstItemContainer* ConstItemContainer::GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace ) throw() { ::com::sun::star::uno::Reference< ::com::sun::star::lang::XUnoTunnel > xUT( rxIFace, ::com::sun::star::uno::UNO_QUERY ); - return xUT.is() ? (ConstItemContainer*)xUT->getSomething( ConstItemContainer::GetUnoTunnelId() ) : NULL; + return xUT.is() ? reinterpret_cast< ConstItemContainer* >(sal::static_int_cast< sal_IntPtr >( + xUT->getSomething( ConstItemContainer::GetUnoTunnelId() ))) : NULL; } // XElementAccess @@ -391,7 +394,7 @@ throw (::com::sun::star::uno::RuntimeException) return (*pInfo); } -void SAL_CALL ConstItemContainer::setPropertyValue( const OUString& aPropertyName, const Any& aValue ) +void SAL_CALL ConstItemContainer::setPropertyValue( const OUString&, const Any& ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) { } @@ -405,31 +408,31 @@ throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang throw UnknownPropertyException(); } -void SAL_CALL ConstItemContainer::addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) +void SAL_CALL ConstItemContainer::addPropertyChangeListener( const ::rtl::OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) { } -void SAL_CALL ConstItemContainer::removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) +void SAL_CALL ConstItemContainer::removePropertyChangeListener( const ::rtl::OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) { // Only read-only properties - do nothing } -void SAL_CALL ConstItemContainer::addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) +void SAL_CALL ConstItemContainer::addVetoableChangeListener( const ::rtl::OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) { // Only read-only properties - do nothing } -void SAL_CALL ConstItemContainer::removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) +void SAL_CALL ConstItemContainer::removeVetoableChangeListener( const ::rtl::OUString&, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) { // Only read-only properties - do nothing } // XFastPropertySet -void SAL_CALL ConstItemContainer::setFastPropertyValue( sal_Int32 nHandle, const ::com::sun::star::uno::Any& aValue ) +void SAL_CALL ConstItemContainer::setFastPropertyValue( sal_Int32, const ::com::sun::star::uno::Any& ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) { } |