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

Stephan Bergmann sbergman at redhat.com
Wed Jan 21 03:30:14 PST 2015


 bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7cb5b2117429c6c5b12cd2ee4925e0eea18375be
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jan 21 12:29:36 2015 +0100

    loplugin:cstylecast
    
    Change-Id: Ib8575109cfe0339f2d8b56741d3ad2a538ecf164

diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx
index 971ca8a..7b49e23 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/callvirtualmethod.cxx
@@ -77,7 +77,7 @@ void CPPU_CURRENT_NAMESPACE::callVirtualMethod(
     // Get pointer to method
     sal_uInt64 pMethod = *((sal_uInt64 *)pThis);
     pMethod += 8 * nVtableIndex;
-    data.pMethod = *((sal_uInt64 *)pMethod);
+    data.pMethod = *reinterpret_cast<sal_uInt64 *>(pMethod);
 
     // Load parameters to stack, if necessary
     if ( nStack )


More information about the Libreoffice-commits mailing list