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

coverity#738972 rework to help coverity out

Change-Id: I288eb5ba7a38844af1b517ae7480729c236ebd63
üst 10bde6bc
...@@ -263,8 +263,8 @@ void LwpFrib::RegisterStyle(LwpFoundry* pFoundry) ...@@ -263,8 +263,8 @@ void LwpFrib::RegisterStyle(LwpFoundry* pFoundry)
pFont = pFoundry->GetFontManger().CreateOverrideFont(pCharStyle->GetFinalFontID(),m_pModifiers->FontID); pFont = pFoundry->GetFontManger().CreateOverrideFont(pCharStyle->GetFinalFontID(),m_pModifiers->FontID);
pStyle->SetFont(pFont); pStyle->SetFont(pFont);
IXFStyleRet aNewStyle = pXFStyleManager->AddStyle(pStyle); IXFStyleRet aNewStyle = pXFStyleManager->AddStyle(pStyle);
IXFStyle *pNewStyle = aNewStyle.m_pStyle; pStyle = dynamic_cast<XFTextStyle*>(aNewStyle.m_pStyle);
m_StyleName = pNewStyle->GetStyleName(); m_StyleName = pStyle->GetStyleName();
if (aNewStyle.m_bOrigDeleted) if (aNewStyle.m_bOrigDeleted)
pStyle = NULL; pStyle = NULL;
} }
...@@ -279,8 +279,8 @@ void LwpFrib::RegisterStyle(LwpFoundry* pFoundry) ...@@ -279,8 +279,8 @@ void LwpFrib::RegisterStyle(LwpFoundry* pFoundry)
pFont = pFoundry->GetFontManger().CreateFont(m_pModifiers->FontID); pFont = pFoundry->GetFontManger().CreateFont(m_pModifiers->FontID);
pStyle->SetFont(pFont); pStyle->SetFont(pFont);
IXFStyleRet aNewStyle = pXFStyleManager->AddStyle(pStyle); IXFStyleRet aNewStyle = pXFStyleManager->AddStyle(pStyle);
IXFStyle *pNewStyle = aNewStyle.m_pStyle; pStyle = dynamic_cast<XFTextStyle*>(aNewStyle.m_pStyle);
m_StyleName = pNewStyle->GetStyleName(); m_StyleName = pStyle->GetStyleName();
if (aNewStyle.m_bOrigDeleted) if (aNewStyle.m_bOrigDeleted)
pStyle = NULL; pStyle = NULL;
} }
......
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