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

Stephan Bergmann sbergman at redhat.com
Tue Jan 19 13:05:31 PST 2016


 desktop/source/lib/init.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 10c9f31ad7d0696327b67b6d2a4e3f244473d877
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jan 19 22:05:00 2016 +0100

    loplugin:cstylecast
    
    Change-Id: Ib4052fa88cce3b21d20d050fff9c8d32fcde4c20

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index d2b4f60..6b8f369 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1576,7 +1576,7 @@ static char* lo_getError (LibreOfficeKit *pThis)
 }
 static void lo_freeError(const char *pfree)
 {
-    free((void *) pfree);
+    free(const_cast<char *>(pfree));
 }
 
 static char* lo_getFilterTypes(LibreOfficeKit* pThis)


More information about the Libreoffice-commits mailing list