[Libreoffice-commits] core.git: vcl/opengl

Tor Lillqvist tml at collabora.com
Tue Sep 1 10:05:25 PDT 2015


 vcl/opengl/salbmp.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 086aec27ddfd72dc21fffb0466cb5c815e2b4169
Author: Tor Lillqvist <tml at collabora.com>
Date:   Tue Sep 1 20:04:43 2015 +0300

    WaE: C-style cast from const sal_uInt64 * to sal_uInt8 * [loplugin:cstylecast]
    
    Change-Id: I2ab166ab0286213bf61f83fc257a3cc7123413c6

diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx
index 30ef71f..ee71ade 100644
--- a/vcl/opengl/salbmp.cxx
+++ b/vcl/opengl/salbmp.cxx
@@ -514,7 +514,7 @@ bool OpenGLSalBitmap::calcChecksumGL(OpenGLTexture& rInputTexture, ChecksumType&
     OUString FragShader("areaHashCRC64TFragmentShader");
 
     static const OpenGLTexture aCRCTableTexture(512, 1, GL_RGBA, GL_UNSIGNED_BYTE,
-            (sal_uInt8*)(vcl_get_crc64_table()));
+            const_cast<sal_uInt8*>(reinterpret_cast<const sal_uInt8*>(vcl_get_crc64_table())));
 
     // First Pass
 


More information about the Libreoffice-commits mailing list