From 2e3655bb51785d14b5e5bd3b07e0b6ae2fe1f86b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 9 Jan 2015 10:54:45 +0100 Subject: [PATCH] loplugin:cstylecast Change-Id: I86aaad9f38ad63121805fa3dc05b3a8a33428ef7 --- basic/source/comp/parser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx index ea2976a76847..b38154b1b534 100644 --- a/basic/source/comp/parser.cxx +++ b/basic/source/comp/parser.cxx @@ -161,7 +161,7 @@ SbiSymDef* SbiParser::CheckRTLForSym( const OUString& rSym, SbxDataType eType ) if( pVar->IsA( TYPE(SbxMethod) ) ) { SbiProcDef* pProc_ = aRtlSyms.AddProc( rSym ); - SbxMethod* pMethod = (SbxMethod*) pVar; + SbxMethod* pMethod = static_cast(pVar); if ( pMethod && pMethod->IsRuntimeFunction() ) { pProc_->SetType( pMethod->GetRuntimeFunctionReturnType() );