summaryrefslogtreecommitdiff
path: root/vcl/opengl/program.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:32:26 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:40 +0100
commit513fc2916053db5ee7ffaf9f53c271a05cef8981 (patch)
tree7f24849841f33f3e1b2737762548c8525bca780e /vcl/opengl/program.cxx
parent41982607d0c9b69efd5789762bbdae6c7301ee8b (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I17c57a85bcda98ef36ddefd6562d4681d0c7d5fc
Diffstat (limited to 'vcl/opengl/program.cxx')
-rw-r--r--vcl/opengl/program.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/opengl/program.cxx b/vcl/opengl/program.cxx
index 3504b06847ff..d40aa30695f9 100644
--- a/vcl/opengl/program.cxx
+++ b/vcl/opengl/program.cxx
@@ -87,7 +87,7 @@ bool OpenGLProgram::Clean()
void OpenGLProgram::SetVertexAttrib( GLuint& rAttrib, const OString& rName, const GLvoid* pData )
{
if( rAttrib == SAL_MAX_UINT32 )
- rAttrib = glGetAttribLocation( mnId, (char*) rName.getStr() );
+ rAttrib = glGetAttribLocation( mnId, rName.getStr() );
if( (mnEnabledAttribs & ( 1 << rAttrib )) == 0 )
{
glEnableVertexAttribArray( rAttrib );
@@ -116,7 +116,7 @@ GLuint OpenGLProgram::GetUniformLocation( const OString& rName )
auto it = maUniformLocations.find( rName );
if( it == maUniformLocations.end() )
{
- GLuint nLocation = glGetUniformLocation( mnId, (char*) rName.getStr() );
+ GLuint nLocation = glGetUniformLocation( mnId, rName.getStr() );
maUniformLocations[rName] = nLocation;
return nLocation;
}