From 5a4c549d3252ef371656cbb5dedeb8c9c5c60994 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Thu, 18 Dec 2014 21:13:39 +0100 Subject: Some cppcheck cleanings: Prefer prefix ++/-- operators for non-primitive types Change-Id: I899164412ad90653b4228423283f9fbd4cb5fccc --- vcl/opengl/program.cxx | 2 +- vcl/source/opengl/OpenGLContext.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/opengl/program.cxx b/vcl/opengl/program.cxx index 46552fd2dc34..434b72482a8b 100644 --- a/vcl/opengl/program.cxx +++ b/vcl/opengl/program.cxx @@ -57,7 +57,7 @@ bool OpenGLProgram::Clean() { glActiveTexture( GL_TEXTURE0 + nIndex-- ); it->Unbind(); - it++; + ++it; } maTextures.clear(); } diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 04e19ba592dd..182a2e95be19 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -1168,7 +1168,7 @@ void OpenGLContext::reset() while( it != maPrograms.end() ) { delete it->second; - it++; + ++it; } maPrograms.clear(); } -- cgit