summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-10-24 11:52:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-24 19:55:47 +0200
commit28119343b60a20b64fde6470967c7582ed59c807 (patch)
treef0928fbc8ef97742dc5c2decfc6c66adc831d23d /lotuswordpro
parent073814d83e6c93d84004bb3927f1d40ed1e8ff3a (diff)
ofz#3745 Bad-cast
Change-Id: I063646c8cce8ad5d62dc327e86e98942e57fc3f7 Reviewed-on: https://gerrit.libreoffice.org/43754 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/bento.hxx2
-rw-r--r--lotuswordpro/source/filter/tocread.cxx3
2 files changed, 2 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/bento.hxx b/lotuswordpro/source/filter/bento.hxx
index 156674287305..069a408cbc5d 100644
--- a/lotuswordpro/source/filter/bento.hxx
+++ b/lotuswordpro/source/filter/bento.hxx
@@ -369,7 +369,7 @@ class CBenTypeName : public CBenNamedObject
{
public: // Internal methods
CBenTypeName(LtcBenContainer * pContainer, BenObjectID ObjectID,
- CBenObject * pPrevObject, const OString& rName,
+ CUtListElmt * pPrevObject, const OString& rName,
CUtListElmt * pPrevNamedObjectListElmt) :
CBenNamedObject(pContainer, ObjectID, pPrevObject, rName,
pPrevNamedObjectListElmt) { ; }
diff --git a/lotuswordpro/source/filter/tocread.cxx b/lotuswordpro/source/filter/tocread.cxx
index c98ec8562642..f85e0c4230d8 100644
--- a/lotuswordpro/source/filter/tocread.cxx
+++ b/lotuswordpro/source/filter/tocread.cxx
@@ -306,8 +306,7 @@ CBenTOCReader::ReadTOC()
return BenErr_DuplicateName;
}
- CBenObject * pPrevObject = static_cast<CBenObject *>( cpContainer->
- GetObjects().GetLast());
+ CUtListElmt* pPrevObject = cpContainer->GetObjects().GetLast();
if (PropertyID == BEN_PROPID_GLOBAL_PROPERTY_NAME)
pObject = new CBenPropertyName(cpContainer, ObjectID,