summaryrefslogtreecommitdiff
path: root/include/cppu
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:00:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:18 +0100
commit1777f6fedbd59b440e06c17f90842a2c2b5e349c (patch)
tree017706ce6823516bd42b79b7fb5bbf3c99feb2b4 /include/cppu
parentd18aa948685c4533694b89af9e3c8bce6dd1e854 (diff)
Clean up C-style casts from pointers to void
Change-Id: I834eb4ecd0fa71caf6fa746901367fac8b538305
Diffstat (limited to 'include/cppu')
-rw-r--r--include/cppu/Enterable.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/cppu/Enterable.hxx b/include/cppu/Enterable.hxx
index 9ccc1ddfc792..2c20986da680 100644
--- a/include/cppu/Enterable.hxx
+++ b/include/cppu/Enterable.hxx
@@ -63,14 +63,14 @@ private:
Enterable & operator = (Enterable const &) SAL_DELETED_FUNCTION;
};
-extern "C" inline void Enterable_call_enter (void * context) { ((Enterable *)context)->v_enter(); }
-extern "C" inline void Enterable_call_leave (void * context) { ((Enterable *)context)->v_leave(); }
+extern "C" inline void Enterable_call_enter (void * context) { static_cast<Enterable *>(context)->v_enter(); }
+extern "C" inline void Enterable_call_leave (void * context) { static_cast<Enterable *>(context)->v_leave(); }
extern "C" inline void Enterable_call_callInto_v(void * context, uno_EnvCallee * pCallee, va_list * pParam)
- { ((Enterable *)context)->v_callInto_v(pCallee, pParam); }
+ { static_cast<Enterable *>(context)->v_callInto_v(pCallee, pParam); }
extern "C" inline void Enterable_call_callOut_v (void * context, uno_EnvCallee * pCallee, va_list * pParam)
- { ((Enterable *)context)->v_callOut_v(pCallee, pParam); }
+ { static_cast<Enterable *>(context)->v_callOut_v(pCallee, pParam); }
extern "C" inline int Enterable_call_isValid (void * context, rtl_uString ** pReason)
- {return ((Enterable *)context)->v_isValid(reinterpret_cast<rtl::OUString *>(pReason));}
+ {return static_cast<Enterable *>(context)->v_isValid(reinterpret_cast<rtl::OUString *>(pReason));}
Enterable::Enterable(void)