diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-09-15 18:51:50 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-09-15 18:55:42 +0300 |
commit | f74e120ed08fa557faf09a76363e774057163f76 (patch) | |
tree | 265c2e9d196067a197dec94012b991e23fd2d048 /vcl | |
parent | c84e6ac490625d108409681feb45520d8e8478d4 (diff) |
WaE: loplugin:cstylecast
Change-Id: I08c31a7e097464da5df4fcda6637f442d147230f
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/opengl/OpenGLHelper.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx index 4b7b21ec2638..c4af1db64ada 100644 --- a/vcl/source/opengl/OpenGLHelper.cxx +++ b/vcl/source/opengl/OpenGLHelper.cxx @@ -309,14 +309,14 @@ namespace GLint nBinaryLength = aBinary.size() - GLenumSize; // Extract binary format - sal_uInt8* pBF = (sal_uInt8*)(&nBinaryFormat); + sal_uInt8* pBF = reinterpret_cast<sal_uInt8*>(&nBinaryFormat); for( size_t i = 0; i < GLenumSize; ++i ) { pBF[i] = aBinary[nBinaryLength + i]; } // Load the program - glProgramBinary( nProgramID, nBinaryFormat, (void*)(aBinary.data()), nBinaryLength ); + glProgramBinary( nProgramID, nBinaryFormat, aBinary.data(), nBinaryLength ); // Check the program glGetProgramiv(nProgramID, GL_LINK_STATUS, &nResult); @@ -338,9 +338,9 @@ namespace std::vector<sal_uInt8> aBinary( nBinaryLength + GLenumSize ); - glGetProgramBinary( nProgramID, nBinaryLength, NULL, &nBinaryFormat, (void*)(aBinary.data()) ); + glGetProgramBinary( nProgramID, nBinaryLength, NULL, &nBinaryFormat, aBinary.data() ); - const sal_uInt8* pBF = (const sal_uInt8*)(&nBinaryFormat); + const sal_uInt8* pBF = reinterpret_cast<const sal_uInt8*>(&nBinaryFormat); aBinary.insert( aBinary.end(), pBF, pBF + GLenumSize ); SAL_INFO("vcl.opengl", "Program id: " << nProgramID ); |