summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-11-15 18:39:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-11-17 09:27:34 +0000
commit277a59c0e8f3fefc78a2bde659443dd81c368299 (patch)
tree5ebe392472952d5ee0621447e6b7186c197c16c9
parentd266fe13f60aab4975326eef5dc095c0f42ead48 (diff)
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 <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx2
1 files changed, 1 insertions, 1 deletions
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 )