summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwpfribsection.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-14 09:56:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-14 12:02:45 +0000
commit0332e3a8e968f9f85b40405391120d2f5949fbd2 (patch)
tree5bb1c10ed24f64d1d3d2a183dd6903c7dafe8f62 /lotuswordpro/source/filter/lwpfribsection.cxx
parentcoverity#1242888 Unused value (diff)
downloadcore-0332e3a8e968f9f85b40405391120d2f5949fbd2.tar.gz
core-0332e3a8e968f9f85b40405391120d2f5949fbd2.zip
coverity#738972 Use after free
Change-Id: Iba60fc4ff3b10179ebc700467a3d73e7bc7b64c9
Diffstat (limited to 'lotuswordpro/source/filter/lwpfribsection.cxx')
-rw-r--r--lotuswordpro/source/filter/lwpfribsection.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/lwpfribsection.cxx b/lotuswordpro/source/filter/lwpfribsection.cxx
index 388f9307343c..f66b00f9b509 100644
--- a/lotuswordpro/source/filter/lwpfribsection.cxx
+++ b/lotuswordpro/source/filter/lwpfribsection.cxx
@@ -310,7 +310,7 @@ bool LwpMasterPage::RegisterMasterPage(LwpFrib* pFrib)
m_pPara->RegisterTabStyle(pOverStyle);
XFStyleManager* pXFStyleManager = LwpGlobalMgr::GetInstance()->GetXFStyleManager();
- m_StyleName = pXFStyleManager->AddStyle(pOverStyle)->GetStyleName();
+ m_StyleName = pXFStyleManager->AddStyle(pOverStyle).m_pStyle->GetStyleName();
//register section style here
if(m_bNewSection)
{
@@ -335,7 +335,7 @@ bool LwpMasterPage::RegisterMasterPage(LwpFrib* pFrib)
pSectStyle->SetColumns(pColumns);
}
//}
- m_SectionStyleName = pXFStyleManager->AddStyle(pSectStyle)->GetStyleName();
+ m_SectionStyleName = pXFStyleManager->AddStyle(pSectStyle).m_pStyle->GetStyleName();
}
return false;
}
@@ -447,7 +447,7 @@ void LwpMasterPage::RegisterFillerPageStyle()
pPagebreakStyle->SetStyleName("");
pPagebreakStyle->SetBreaks(enumXFBreakAftPage);
XFStyleManager* pXFStyleManager = LwpGlobalMgr::GetInstance()->GetXFStyleManager();
- m_FillerPageStyleName= pXFStyleManager->AddStyle(pPagebreakStyle)->GetStyleName();
+ m_FillerPageStyleName= pXFStyleManager->AddStyle(pPagebreakStyle).m_pStyle->GetStyleName();
}
}
}