summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/tocread.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-07-08 10:22:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-07-08 10:23:03 +0200
commit44fb7631cc03bbab655391593d248ba3875f308b (patch)
tree17b8a81fe69ba5b0c6b5e84b76c40b9fc7469585 /lotuswordpro/source/filter/tocread.cxx
parentwebdav: fix locking in webdav_ucp::Content::getResourceType() (diff)
downloadcore-44fb7631cc03bbab655391593d248ba3875f308b.tar.gz
core-44fb7631cc03bbab655391593d248ba3875f308b.zip
Avoid undefined downcasts to wrong type
...CUtList::cDummyElmt is always only of type CUtListElmt, not a derived type. Change-Id: Ibc372642e2a53c548421b5cfa7cc496986036815
Diffstat (limited to 'lotuswordpro/source/filter/tocread.cxx')
-rw-r--r--lotuswordpro/source/filter/tocread.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/tocread.cxx b/lotuswordpro/source/filter/tocread.cxx
index b924d93c96d5..77dbdb166bc0 100644
--- a/lotuswordpro/source/filter/tocread.cxx
+++ b/lotuswordpro/source/filter/tocread.cxx
@@ -287,7 +287,7 @@ CBenTOCReader::ReadTOC()
return Err;
}
- pCBenNamedObjectListElmt pPrevNamedObjectListElmt;
+ pCUtListElmt pPrevNamedObjectListElmt;
if (FindNamedObject(&cpContainer->GetNamedObjects(),
sBuffer, &pPrevNamedObjectListElmt) != NULL)
{
@@ -342,10 +342,10 @@ CBenTOCReader::ReadTOC()
if (pObject == NULL)
pObject = new CBenObject(cpContainer, ObjectID,
- (pCBenObject) cpContainer->GetObjects().GetLast());
+ cpContainer->GetObjects().GetLast());
pProperty = new CBenProperty(pObject, PropertyID, TypeID,
- (pCBenProperty) pObject->GetProperties().GetLast());
+ pObject->GetProperties().GetLast());
if ((Err = ReadSegments(&pProperty->UseValue(),
&LookAhead)) != BenErr_OK)