diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-13 21:03:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-13 21:13:42 +0000 |
commit | 6d69185611a88308c3f0b2aa94f6a8549dd2b8fd (patch) | |
tree | cdcf50f79a51fbe57339020c46cf1761729e3e0a /vcl | |
parent | 06458fdeb862dc483dcac8107a5cc8c2da01a3f0 (diff) |
coverity#1251584 Unchecked dynamic_cast
Change-Id: I2022c25f821473240a5ff3998249e933ea7fb74d
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/generic/gdi/salgdi.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx index 2723db40d139..50ffdc6ade7f 100644 --- a/vcl/unx/generic/gdi/salgdi.cxx +++ b/vcl/unx/generic/gdi/salgdi.cxx @@ -145,7 +145,7 @@ void X11SalGraphics::SetDrawable( Drawable aDrawable, SalX11Screen nXScreen ) if( hDrawable_ ) { - dynamic_cast<X11GraphicsImpl*>(mpImpl.get())->Init(); + dynamic_cast<X11GraphicsImpl&>(*mpImpl.get()).Init(); // TODO: moggi: FIXME nTextPixel_ = GetPixel( nTextColor_ ); } } |