vcl/source/opengl/OpenGLContext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 277a59c0e8f3fefc78a2bde659443dd81c368299 Author: Julien Nabet <serval2...@yahoo.fr> Date: Sat Nov 15 18:39:08 2014 +0100 cppcheck: Return value of std::remove() ignored. Elements remain in container. Change-Id: I1e3bcb013d27c6f9a1484c9f1e23b63f42615b9b Reviewed-on: https://gerrit.libreoffice.org/12460 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 0659ce5..98eb068 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 )
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits