[Libreoffice-commits] core.git: basic/source

Stephan Bergmann sbergman at redhat.com
Fri Jan 9 01:55:20 PST 2015


 basic/source/comp/parser.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2e3655bb51785d14b5e5bd3b07e0b6ae2fe1f86b
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jan 9 10:54:45 2015 +0100

    loplugin:cstylecast
    
    Change-Id: I86aaad9f38ad63121805fa3dc05b3a8a33428ef7

diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx
index ea2976a..b38154b 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<SbxMethod*>(pVar);
             if ( pMethod && pMethod->IsRuntimeFunction() )
             {
                 pProc_->SetType( pMethod->GetRuntimeFunctionReturnType() );


More information about the Libreoffice-commits mailing list