diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:23:52 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:23:52 +0200 |
commit | 66a0a3726adc17f1f5378c4c6de00bb930a370d5 (patch) | |
tree | 913412a14b7bbb2ab8f69f708b63c472e67a4dda /comphelper/source/eventattachermgr | |
parent | bc14d27dd0b50a37ff7ec93b49de976e01c54d0d (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I1ceb4359188b61e15a31750a496021c4394e1a3f
Diffstat (limited to 'comphelper/source/eventattachermgr')
-rw-r--r-- | comphelper/source/eventattachermgr/eventattachermgr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/eventattachermgr/eventattachermgr.cxx b/comphelper/source/eventattachermgr/eventattachermgr.cxx index 279f18d0ce6e..5074a577b185 100644 --- a/comphelper/source/eventattachermgr/eventattachermgr.cxx +++ b/comphelper/source/eventattachermgr/eventattachermgr.cxx @@ -185,7 +185,7 @@ void SAL_CALL AttacherAllListener_Impl::firing(const AllEventObject& Event) throw( RuntimeException, std::exception ) { ScriptEvent aScriptEvent; - aScriptEvent.Source = (OWeakObject *)mpManager; // get correct XInterface + aScriptEvent.Source = static_cast<OWeakObject *>(mpManager); // get correct XInterface aScriptEvent.ListenerType = Event.ListenerType; aScriptEvent.MethodName = Event.MethodName; aScriptEvent.Arguments = Event.Arguments; @@ -250,7 +250,7 @@ Any SAL_CALL AttacherAllListener_Impl::approveFiring( const AllEventObject& Even throw( InvocationTargetException, RuntimeException, std::exception ) { ScriptEvent aScriptEvent; - aScriptEvent.Source = (OWeakObject *)mpManager; // get correct XInterface + aScriptEvent.Source = static_cast<OWeakObject *>(mpManager); // get correct XInterface aScriptEvent.ListenerType = Event.ListenerType; aScriptEvent.MethodName = Event.MethodName; aScriptEvent.Arguments = Event.Arguments; |