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

use more references to fix life cycles

Change-Id: I50fd30114b45d1225adb7bfd5d77cb89a229aac8
üst c66ed959
...@@ -130,12 +130,12 @@ void LwpStory::XFConvert(XFContentContainer* pCont) ...@@ -130,12 +130,12 @@ void LwpStory::XFConvert(XFContentContainer* pCont)
void LwpStory::RegisterStyle() void LwpStory::RegisterStyle()
{ {
LwpPara* pPara = dynamic_cast<LwpPara*>( GetFirstPara().obj().get() ); rtl::Reference<LwpPara> xPara(dynamic_cast<LwpPara*>(GetFirstPara().obj().get()));
while(pPara) while (xPara.is())
{ {
pPara->SetFoundry(m_pFoundry); xPara->SetFoundry(m_pFoundry);
pPara->DoRegisterStyle(); xPara->DoRegisterStyle();
pPara = dynamic_cast<LwpPara*>(pPara->GetNext().obj().get()); xPara.set(dynamic_cast<LwpPara*>(xPara->GetNext().obj().get()));
} }
} }
......
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