From afb1fb14dca30f09efd96092c282f2d85f6d078d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 10 Oct 2014 14:39:47 +0200 Subject: Use better casts Change-Id: Ibcf2d715ac306bd4bedae716ad82c614f136d1bc --- include/sfx2/msg.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/sfx2/msg.hxx') diff --git a/include/sfx2/msg.hxx b/include/sfx2/msg.hxx index 120005e7ba22..46963b2ff43d 100644 --- a/include/sfx2/msg.hxx +++ b/include/sfx2/msg.hxx @@ -82,14 +82,14 @@ class SfxItemSet; void SfxStub##aShellClass##aExecMethod( \ SfxShell *pShell, SfxRequest& rReq) \ { \ - (( aShellClass* ) pShell )->aExecMethod( rReq ); \ + static_cast(pShell)->aExecMethod( rReq ); \ } #define SFX_STATE_STUB( aShellClass, aStateMethod) \ void SfxStub##aShellClass##aStateMethod( \ SfxShell *pShell, SfxItemSet& rSet) \ { \ - (( aShellClass* ) pShell )->aStateMethod( rSet ); \ + static_cast(pShell)->aStateMethod( rSet ); \ } #define SFX_STUB_PTR( aShellClass, aMethod ) \ -- cgit