From 9193a15fc55b24e9f463838fd2981ddb84dca227 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 17 Jan 2015 18:18:10 +0100 Subject: Some more loplugin:cstylecast: cppu Change-Id: Iec1251648031afa9eddd7445135fb08dc74821bd --- include/cppu/Enterable.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/cppu') diff --git a/include/cppu/Enterable.hxx b/include/cppu/Enterable.hxx index f855ab70c041..1a5b3c7736eb 100644 --- a/include/cppu/Enterable.hxx +++ b/include/cppu/Enterable.hxx @@ -56,7 +56,7 @@ public: inline void callInto(uno_EnvCallee * pCallee, ...); inline void callOut (uno_EnvCallee * pCallee, ...); - inline int isValid (rtl::OUString * pReason) {return m_isValid(this, (rtl_uString **)pReason);} + inline int isValid (rtl::OUString * pReason) {return m_isValid(this, &pReason->pData);} private: Enterable(Enterable const &); @@ -70,7 +70,7 @@ extern "C" inline void Enterable_call_callInto_v(void * context, uno_EnvCallee * extern "C" inline void Enterable_call_callOut_v (void * context, uno_EnvCallee * pCallee, va_list * pParam) { ((Enterable *)context)->v_callOut_v(pCallee, pParam); } extern "C" inline int Enterable_call_isValid (void * context, rtl_uString ** pReason) - {return ((Enterable *)context)->v_isValid((rtl::OUString *)pReason);} + {return ((Enterable *)context)->v_isValid(reinterpret_cast(pReason));} Enterable::Enterable(void) -- cgit