diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-19 09:58:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-19 11:01:06 +0000 |
commit | c7d03c4e9c0bde6cb838b9812e1c0d19191a7e44 (patch) | |
tree | be2c598f70724540e11651b7457f12008beaabb1 /vcl/opengl/win | |
parent | 71f1553cee2c24a4e5b863750e5cfb795b54ecc2 (diff) |
coverity#1254674 Unchecked dynamic_cast
Change-Id: Iae62353e42947324beca8d036fcd1c20346d0d29
Diffstat (limited to 'vcl/opengl/win')
-rw-r--r-- | vcl/opengl/win/gdiimpl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/opengl/win/gdiimpl.cxx b/vcl/opengl/win/gdiimpl.cxx index 67a192eb7f12..18e0da860e6b 100644 --- a/vcl/opengl/win/gdiimpl.cxx +++ b/vcl/opengl/win/gdiimpl.cxx @@ -20,8 +20,8 @@ WinOpenGLSalGraphicsImpl::WinOpenGLSalGraphicsImpl(WinSalGraphics& rGraphics): void WinOpenGLSalGraphicsImpl::copyBits( const SalTwoRect& rPosAry, SalGraphics* pSrcGraphics ) { - OpenGLSalGraphicsImpl *pImpl = pSrcGraphics ? dynamic_cast< OpenGLSalGraphicsImpl* >(pSrcGraphics->GetImpl()) : static_cast< OpenGLSalGraphicsImpl *>(mrParent.GetImpl()); - OpenGLSalGraphicsImpl::DoCopyBits( rPosAry, pImpl ); + OpenGLSalGraphicsImpl *pImpl = pSrcGraphics ? static_cast< OpenGLSalGraphicsImpl* >(pSrcGraphics->GetImpl()) : static_cast< OpenGLSalGraphicsImpl *>(mrParent.GetImpl()); + OpenGLSalGraphicsImpl::DoCopyBits( rPosAry, *pImpl ); } GLfloat WinOpenGLSalGraphicsImpl::GetWidth() const |