Skip to content

Commit

Permalink
Initialize member variables in MythRenderOpenGL ctor
Browse files Browse the repository at this point in the history
The refactor of the OpenGL code appears to result
in the ResetVars and ResetProcs functions being
called from the ctors of MythRenderOpenGL[12], but
invoke them explicitly to keep Coverity happy.

Fixes Coverity 700926 and 700927

Fixes #11660.

Signed-off-by: Paul Harrison <pharrison@mythtv.org>
  • Loading branch information
garybuhrmaster authored and Paul Harrison committed Jul 13, 2013
1 parent afed984 commit 07c54f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/libs/libmythui/mythrender_opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,15 @@ MythRenderOpenGL::MythRenderOpenGL(const QGLFormat& format, QPaintDevice* device
RenderType type)
: QGLContext(format, device), MythRender(type)
{
ResetVars();
ResetProcs();
}

MythRenderOpenGL::MythRenderOpenGL(const QGLFormat& format, RenderType type)
: QGLContext(format), MythRender(type)
{
ResetVars();
ResetProcs();
}

MythRenderOpenGL::~MythRenderOpenGL()
Expand Down

0 comments on commit 07c54f0

Please sign in to comment.