[Libreoffice-commits] core.git: include/sfx2
Stephan Bergmann
sbergman at redhat.com
Fri Oct 10 05:40:28 PDT 2014
include/sfx2/msg.hxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit afb1fb14dca30f09efd96092c282f2d85f6d078d
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Oct 10 14:39:47 2014 +0200
Use better casts
Change-Id: Ibcf2d715ac306bd4bedae716ad82c614f136d1bc
diff --git a/include/sfx2/msg.hxx b/include/sfx2/msg.hxx
index 120005e..46963b2 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 ) \
More information about the Libreoffice-commits
mailing list