diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-13 21:06:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-13 21:13:45 +0000 |
commit | 900b202bb6a9e79c51327a8a157d04241ce4fdf3 (patch) | |
tree | a354e7028a4886ce1b596aaa9cfdc02b43343306 /vcl/unx/generic/gdi | |
parent | 38fb5f7c6795ba60fe822604e3843652aab472ed (diff) |
coverity#1251588 Unchecked dynamic_cast
Change-Id: Ic6f287b5ee4f4ac3a9674d67b8c15a589405c951
Diffstat (limited to 'vcl/unx/generic/gdi')
-rw-r--r-- | vcl/unx/generic/gdi/salgdi2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/generic/gdi/salgdi2.cxx b/vcl/unx/generic/gdi/salgdi2.cxx index 62cf7969d477..768e5967e323 100644 --- a/vcl/unx/generic/gdi/salgdi2.cxx +++ b/vcl/unx/generic/gdi/salgdi2.cxx @@ -85,8 +85,8 @@ void X11SalGraphics::CopyScreenArea( Display* pDisplay, X11Pixmap* X11SalGraphics::GetPixmapFromScreen( const Rectangle& rRect ) { - X11GraphicsImpl* pImpl = dynamic_cast<X11GraphicsImpl*>(mpImpl.get()); - return pImpl->GetPixmapFromScreen( rRect ); + X11GraphicsImpl& rImpl = dynamic_cast<X11GraphicsImpl&>(*mpImpl.get()); + return rImpl.GetPixmapFromScreen( rRect ); } bool X11SalGraphics::RenderPixmapToScreen( X11Pixmap* pPixmap, int nX, int nY ) |