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

coverity#1209548 Unchecked dynamic_cast

Change-Id: I0adb2380d6804fef43812be3b9a6f32706fd7a4a
üst 8a0230e7
......@@ -289,6 +289,8 @@ void DomainMapper_Impl::RemoveDummyParaForTableInSection()
SetIsDummyParaAddedForTableInSection(false);
PropertyMapPtr pContext = GetTopContextOfType(CONTEXT_SECTION);
SectionPropertyMap* pSectionContext = dynamic_cast< SectionPropertyMap* >( pContext.get() );
if (!pSectionContext)
return;
uno::Reference< text::XTextCursor > xCursor = GetTopTextAppend()->createTextCursorByRange(pSectionContext->GetStartingRange());
uno::Reference<container::XEnumerationAccess> xEnumerationAccess(xCursor, uno::UNO_QUERY);
......
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