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

this cast needs to be dynamic

Change-Id: Iaf8e7a46be9c92a7cd11136cb903cc4b9ffe54f5
üst e9801b28
...@@ -98,7 +98,7 @@ void LwpFribNote::RegisterNewStyle() ...@@ -98,7 +98,7 @@ void LwpFribNote::RegisterNewStyle()
*/ */
void LwpFribNote::XFConvert(XFContentContainer* pCont) void LwpFribNote::XFConvert(XFContentContainer* pCont)
{ {
LwpNoteLayout* pLayout =static_cast<LwpNoteLayout*>(m_Layout.obj().get()); LwpNoteLayout* pLayout = dynamic_cast<LwpNoteLayout*>(m_Layout.obj().get());
if(pLayout) if(pLayout)
{ {
XFAnnotation* pXFNote = new XFAnnotation; XFAnnotation* pXFNote = new XFAnnotation;
......
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