Kaydet (Commit) c15695a9 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1399021 Unchecked dynamic_cast

Change-Id: I2b43a918f8f01bbe075c2edd8ca963e13588903c
üst 2fc13fef
......@@ -721,9 +721,9 @@ bool GraphicExporter::GetGraphic( ExportSettings& rSettings, Graphic& aGraphic,
// create a view
std::unique_ptr< SdrView > pView;
if( dynamic_cast<FmFormModel*>( mpDoc ) != nullptr )
if (FmFormModel *pFormModel = dynamic_cast<FmFormModel*>(mpDoc))
{
pView.reset(new FmFormView( dynamic_cast<FmFormModel*>( mpDoc ), aVDev ) );
pView.reset(new FmFormView(pFormModel, aVDev));
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment