From 277a59c0e8f3fefc78a2bde659443dd81c368299 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 15 Nov 2014 18:39:08 +0100 Subject: cppcheck: Return value of std::remove() ignored. Elements remain in container. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1e3bcb013d27c6f9a1484c9f1e23b63f42615b9b Reviewed-on: https://gerrit.libreoffice.org/12460 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- vcl/source/opengl/OpenGLContext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl') diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 0659ce5b57e0..98eb068ddd7b 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -65,7 +65,7 @@ OpenGLContext::~OpenGLContext() #elif defined( UNX ) if(m_aGLWin.ctx) { - std::remove( vShareList.begin(), vShareList.end(), m_aGLWin.ctx ); + vShareList.erase(std::remove( vShareList.begin(), vShareList.end(), m_aGLWin.ctx )); glXMakeCurrent(m_aGLWin.dpy, None, NULL); if( glGetError() != GL_NO_ERROR ) -- cgit