Kaydet (Commit) 164c89b5 authored tarafından Miklos Vajna's avatar Miklos Vajna

coverity#735765 Unchecked dynamic_cast

Change-Id: I4a1bf64267d36ff4b3b7cf0ba2cc23c52ec2d36e
üst 9d2977d0
......@@ -305,6 +305,8 @@ void SlidePersist::hideShapesAsMasterShapes()
std::vector< oox::drawingml::ShapePtr >::iterator aChildIter( rChildren.begin() );
while( aChildIter != rChildren.end() ) {
PPTShape* pPPTShape = dynamic_cast< PPTShape* >( (*aChildIter++).get() );
if (!pPPTShape)
continue;
OSL_TRACE("hide shape with id: %s", OUStringToOString(pPPTShape->getId(), RTL_TEXTENCODING_UTF8 ).getStr());
pPPTShape->setHiddenMasterShape( true );
}
......
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