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

coverity#1343623 Logically dead code

Change-Id: Ibcf05263f7bea50f70d55f4d8944d0a41d54851d
üst d14b4a6b
...@@ -99,7 +99,7 @@ void XFCell::Add(XFContent *pContent) ...@@ -99,7 +99,7 @@ void XFCell::Add(XFContent *pContent)
} }
if( pContent->GetContentType() == enumXFContentTable ) if( pContent->GetContentType() == enumXFContentTable )
{ {
XFTable *pTable = static_cast<XFTable*>(pContent); XFTable *pTable = dynamic_cast<XFTable*>(pContent);
if( !pTable ) if( !pTable )
return; return;
//the sub table will fill all the cell, there can't be other contents. //the sub table will fill all the cell, there can't be other contents.
......
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