summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/ucbhelper/macros.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ucbhelper/macros.hxx b/include/ucbhelper/macros.hxx
index 8bdd20df0a15..b51d7429d8ac 100644
--- a/include/ucbhelper/macros.hxx
+++ b/include/ucbhelper/macros.hxx
@@ -237,7 +237,7 @@ Class##_CreateInstance( const com::sun::star::uno::Reference< \
throw( com::sun::star::uno::Exception ) \
{ \
com::sun::star::lang::XServiceInfo* pX = \
- (com::sun::star::lang::XServiceInfo*)new Class( rSMgr ); \
+ static_cast<com::sun::star::lang::XServiceInfo*>(new Class( rSMgr )); \
return com::sun::star::uno::Reference< \
com::sun::star::uno::XInterface >::query( pX ); \
}
@@ -250,7 +250,7 @@ Class##_CreateInstance( const com::sun::star::uno::Reference< \
throw( com::sun::star::uno::Exception ) \
{ \
com::sun::star::lang::XServiceInfo* pX = \
- (com::sun::star::lang::XServiceInfo*)new Class( ucbhelper::getComponentContext(rSMgr) ); \
+ static_cast<com::sun::star::lang::XServiceInfo*>(new Class( ucbhelper::getComponentContext(rSMgr) )); \
return com::sun::star::uno::Reference< \
com::sun::star::uno::XInterface >::query( pX ); \
}