diff options
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/inc/unotools/ucblockbytes.hxx | 8 | ||||
-rw-r--r-- | unotools/source/config/xmlaccelcfg.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/unotools/inc/unotools/ucblockbytes.hxx b/unotools/inc/unotools/ucblockbytes.hxx index 9ac68b3d4447..fa69b87bf3bb 100644 --- a/unotools/inc/unotools/ucblockbytes.hxx +++ b/unotools/inc/unotools/ucblockbytes.hxx @@ -177,25 +177,25 @@ public: ::com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream > getInputStream_Impl() const { - osl::MutexGuard aGuard( SAL_CONST_CAST(UcbLockBytes*, this)->m_aMutex ); + osl::MutexGuard aGuard( (const_cast< UcbLockBytes* >(this))->m_aMutex ); return m_xInputStream; } ::com::sun::star::uno::Reference < ::com::sun::star::io::XOutputStream > getOutputStream_Impl() const { - osl::MutexGuard aGuard( SAL_CONST_CAST(UcbLockBytes*, this)->m_aMutex ); + osl::MutexGuard aGuard( (const_cast< UcbLockBytes* >(this))->m_aMutex ); return m_xOutputStream; } ::com::sun::star::uno::Reference < ::com::sun::star::io::XSeekable > getSeekable_Impl() const { - osl::MutexGuard aGuard( SAL_CONST_CAST(UcbLockBytes*, this)->m_aMutex ); + osl::MutexGuard aGuard( (const_cast< UcbLockBytes* >(this))->m_aMutex ); return m_xSeekable; } sal_Bool hasInputStream_Impl() const { - osl::MutexGuard aGuard( SAL_CONST_CAST(UcbLockBytes*, this)->m_aMutex ); + osl::MutexGuard aGuard( (const_cast< UcbLockBytes* >(this))->m_aMutex ); return m_xInputStream.is(); } diff --git a/unotools/source/config/xmlaccelcfg.cxx b/unotools/source/config/xmlaccelcfg.cxx index 74a1ed14b984..416ac943b553 100644 --- a/unotools/source/config/xmlaccelcfg.cxx +++ b/unotools/source/config/xmlaccelcfg.cxx @@ -198,7 +198,7 @@ void AttributeListImpl::clear() Any SAL_CALL OReadAccelatorDocumentHandler::queryInterface( const Type & rType ) throw( RuntimeException ) { - Any a = ::cppu::queryInterface( rType ,SAL_STATIC_CAST( XDocumentHandler*, this )); + Any a = ::cppu::queryInterface( rType ,(static_cast< XDocumentHandler* >(this))); if ( a.hasValue() ) return a; else |