diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-07-08 10:22:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-07-08 10:23:03 +0200 |
commit | 44fb7631cc03bbab655391593d248ba3875f308b (patch) | |
tree | 17b8a81fe69ba5b0c6b5e84b76c40b9fc7469585 /lotuswordpro/source/filter/tocread.cxx | |
parent | webdav: fix locking in webdav_ucp::Content::getResourceType() (diff) | |
download | core-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.cxx | 6 |
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) |