diff options
Diffstat (limited to 'lotuswordpro/source/filter/lwptoc.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwptoc.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwptoc.cxx b/lotuswordpro/source/filter/lwptoc.cxx index 9f3f53b2d836..29d8955c41f4 100644 --- a/lotuswordpro/source/filter/lwptoc.cxx +++ b/lotuswordpro/source/filter/lwptoc.cxx @@ -377,7 +377,7 @@ sal_uInt16 LwpTocSuperLayout::GetSeparatorType(sal_uInt16 index) LwpTocLevelData * LwpTocSuperLayout::GetSearchLevelPtr(sal_uInt16 index) { LwpObjectID * pID = m_SearchItems.GetHead(); // not necessary to check pID NULL or not - LwpTocLevelData * pObj = static_cast<LwpTocLevelData *>(pID->obj()); + LwpTocLevelData * pObj = dynamic_cast<LwpTocLevelData *>(pID->obj()); while(pObj) { @@ -387,7 +387,7 @@ LwpTocLevelData * LwpTocSuperLayout::GetSearchLevelPtr(sal_uInt16 index) } pID = pObj->GetNext(); // not necessary to check pID NULL or not - pObj = static_cast<LwpTocLevelData *>(pID->obj()); + pObj = dynamic_cast<LwpTocLevelData *>(pID->obj()); } return NULL; @@ -401,7 +401,7 @@ LwpTocLevelData * LwpTocSuperLayout::GetSearchLevelPtr(sal_uInt16 index) LwpTocLevelData * LwpTocSuperLayout::GetNextSearchLevelPtr(sal_uInt16 index, LwpTocLevelData * pCurData) { LwpObjectID * pID = pCurData->GetNext(); - LwpTocLevelData * pObj = static_cast<LwpTocLevelData *>(pID->obj()); + LwpTocLevelData * pObj = dynamic_cast<LwpTocLevelData *>(pID->obj()); while(pObj) { @@ -411,7 +411,7 @@ LwpTocLevelData * LwpTocSuperLayout::GetNextSearchLevelPtr(sal_uInt16 index, Lwp } pID = pObj->GetNext(); // not necessary to check pID NULL or not - pObj = static_cast<LwpTocLevelData *>(pID->obj()); + pObj = dynamic_cast<LwpTocLevelData *>(pID->obj()); } return NULL; |