[Libreoffice-commits] core.git: smoketest/libtest.cxx

Tor Lillqvist tml at collabora.com
Mon Feb 15 20:04:54 UTC 2016


 smoketest/libtest.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 41da237dfb5a6c590877fd58c6a3d78eb7d5bc29
Author: Tor Lillqvist <tml at collabora.com>
Date:   Mon Feb 15 21:50:06 2016 +0200

    WaE: loplugin:cstylecast
    
    Change-Id: I96bda48eb553f467fcf5d7120561d2160647e3bb

diff --git a/smoketest/libtest.cxx b/smoketest/libtest.cxx
index 550ff8b..5699683 100644
--- a/smoketest/libtest.cxx
+++ b/smoketest/libtest.cxx
@@ -95,7 +95,7 @@ int main (int argc, char **argv)
             fprintf( stderr, "Failed to link '%s'\n", lok_dlerror() );
             return -1;
         }
-        LokHookPreInit *preinit = (LokHookPreInit *) lok_dlsym( dlhandle, "lok_preinit" );
+        LokHookPreInit *preinit = reinterpret_cast<LokHookPreInit *>(lok_dlsym( dlhandle, "lok_preinit" ));
         if( !preinit )
         {
             fprintf( stderr, "Failed to find pre-init symbol: %s\n", lok_dlerror() );


More information about the Libreoffice-commits mailing list