[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Tue Oct 24 21:21:15 UTC 2017
lotuswordpro/source/filter/bento.hxx | 2 +-
lotuswordpro/source/filter/tocread.cxx | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
New commits:
commit fecc328cc658dfb21caf4d033cb21bd436d7b368
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Oct 24 11:52:36 2017 +0100
ofz#3745 Bad-cast
Change-Id: I063646c8cce8ad5d62dc327e86e98942e57fc3f7
Reviewed-on: https://gerrit.libreoffice.org/43776
Reviewed-by: Michael Stahl <mstahl at redhat.com>
Tested-by: Jenkins <ci at libreoffice.org>
diff --git a/lotuswordpro/source/filter/bento.hxx b/lotuswordpro/source/filter/bento.hxx
index 53fce5379622..f8aefc029ad4 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 be8a7b1d264c..cefdc00b692e 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,
More information about the Libreoffice-commits
mailing list