From c15695a998157e07cc3f248d72763048af28b623 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 21 Jan 2017 15:29:17 +0000 Subject: coverity#1399021 Unchecked dynamic_cast Change-Id: I2b43a918f8f01bbe075c2edd8ca963e13588903c --- svx/source/unodraw/UnoGraphicExporter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx') diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx index 2a852fce9c3b..0be647033ae8 100644 --- a/svx/source/unodraw/UnoGraphicExporter.cxx +++ b/svx/source/unodraw/UnoGraphicExporter.cxx @@ -721,9 +721,9 @@ bool GraphicExporter::GetGraphic( ExportSettings& rSettings, Graphic& aGraphic, // create a view std::unique_ptr< SdrView > pView; - if( dynamic_cast( mpDoc ) != nullptr ) + if (FmFormModel *pFormModel = dynamic_cast(mpDoc)) { - pView.reset(new FmFormView( dynamic_cast( mpDoc ), aVDev ) ); + pView.reset(new FmFormView(pFormModel, aVDev)); } else { -- cgit