Kaydet (Commit) 1339fa3f authored tarafından Miklos Vajna's avatar Miklos Vajna

coverity#735764 Unchecked dynamic_cast

Change-Id: Ic7dc70c1052f5ab04a3e1795549ca43e2e0f2587
üst 04937a61
...@@ -279,7 +279,7 @@ void PPTShape::addShape( ...@@ -279,7 +279,7 @@ void PPTShape::addShape(
// SAL_INFO("oox.ppt","combined master text list style"); // SAL_INFO("oox.ppt","combined master text list style");
// aMasterTextListStyle->dump(); // aMasterTextListStyle->dump();
} }
if( pPPTPlaceholder->mpPlaceholder.get() ) { if( pPPTPlaceholder && pPPTPlaceholder->mpPlaceholder.get() ) {
SAL_INFO("oox.ppt","placeholder has parent placeholder: " << pPPTPlaceholder->mpPlaceholder->getId() << " type: " << lclDebugSubType( pPPTPlaceholder->mpPlaceholder->getSubType() ) << " index: " << pPPTPlaceholder->mpPlaceholder->getSubTypeIndex().get() ); SAL_INFO("oox.ppt","placeholder has parent placeholder: " << pPPTPlaceholder->mpPlaceholder->getId() << " type: " << lclDebugSubType( pPPTPlaceholder->mpPlaceholder->getSubType() ) << " index: " << pPPTPlaceholder->mpPlaceholder->getSubTypeIndex().get() );
SAL_INFO("oox.ppt","has textbody " << (pPPTPlaceholder->mpPlaceholder->getTextBody() != 0) ); SAL_INFO("oox.ppt","has textbody " << (pPPTPlaceholder->mpPlaceholder->getTextBody() != 0) );
TextListStylePtr pPlaceholderStyle = getSubTypeTextListStyle( rSlidePersist, pPPTPlaceholder->mpPlaceholder->getSubType() ); TextListStylePtr pPlaceholderStyle = getSubTypeTextListStyle( rSlidePersist, pPPTPlaceholder->mpPlaceholder->getSubType() );
......
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