Kaydet (Commit) 277a59c0 authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Caolán McNamara

cppcheck: Return value of std::remove() ignored. Elements remain in container.

Change-Id: I1e3bcb013d27c6f9a1484c9f1e23b63f42615b9b
Reviewed-on: https://gerrit.libreoffice.org/12460Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst d266fe13
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment