summaryrefslogtreecommitdiff
path: root/include/ucbhelper/macros.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:29:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:29:28 +0200
commit63082134bfa79da7b5251284fe5a3c516ba41171 (patch)
treed398414aee6a27687f2891bc8048fc8d78927887 /include/ucbhelper/macros.hxx
parent8df62de7a037ee9e222b304662953f2b7aecce50 (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I9778efd0b1d1838c9f51693749575916d77e3198
Diffstat (limited to 'include/ucbhelper/macros.hxx')
-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 ); \
}