diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-10-10 14:39:47 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-10-10 14:40:02 +0200 |
commit | afb1fb14dca30f09efd96092c282f2d85f6d078d (patch) | |
tree | ee4950b32a73c53699426e27bfc4ed8a9e08c357 | |
parent | e147c5785f60506c58ba80455614bdbcdad18e61 (diff) |
Use better casts
Change-Id: Ibcf2d715ac306bd4bedae716ad82c614f136d1bc
-rw-r--r-- | include/sfx2/msg.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<aShellClass*>(pShell)->aExecMethod( rReq ); \ } #define SFX_STATE_STUB( aShellClass, aStateMethod) \ void SfxStub##aShellClass##aStateMethod( \ SfxShell *pShell, SfxItemSet& rSet) \ { \ - (( aShellClass* ) pShell )->aStateMethod( rSet ); \ + static_cast<aShellClass*>(pShell)->aStateMethod( rSet ); \ } #define SFX_STUB_PTR( aShellClass, aMethod ) \ |