summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lotuswordpro/source/filter/benname.cxx4
-rw-r--r--lotuswordpro/source/filter/bento.hxx14
-rw-r--r--lotuswordpro/source/filter/tocread.cxx4
3 files changed, 11 insertions, 11 deletions
diff --git a/lotuswordpro/source/filter/benname.cxx b/lotuswordpro/source/filter/benname.cxx
index 733906de250c..9cdfd5b7c2f7 100644
--- a/lotuswordpro/source/filter/benname.cxx
+++ b/lotuswordpro/source/filter/benname.cxx
@@ -59,10 +59,10 @@ namespace OpenStormBento
{
// changed to remove warning
CBenNamedObject::CBenNamedObject(LtcBenContainer * pContainer,
- BenObjectID ObjectID, CUtListElmt * pPrevObject, const char * sName,
+ BenObjectID ObjectID, CUtListElmt * pPrevObject, const OString& rName,
CUtListElmt * pPrevNamedObjectListElmt)
: CBenObject(pContainer, ObjectID, pPrevObject)
- , csName(sName)
+ , csName(rName)
, cNameListElmt(pPrevNamedObjectListElmt)
{
cNameListElmt.SetNamedObject(this);
diff --git a/lotuswordpro/source/filter/bento.hxx b/lotuswordpro/source/filter/bento.hxx
index 9471590ed6ef..2082897b09e4 100644
--- a/lotuswordpro/source/filter/bento.hxx
+++ b/lotuswordpro/source/filter/bento.hxx
@@ -344,13 +344,13 @@ public: // Methods
public: // Internal methods
CBenNamedObject(LtcBenContainer * pContainer, BenObjectID ObjectID,
- CUtListElmt * pPrevObject, const char * sName,
+ CUtListElmt * pPrevObject, const OString& rName,
CUtListElmt * pPrevNamedObjectListElmt);
- const char * GetNameCStr() { return csName.c_str(); }
+ const char * GetNameCStr() { return csName.getStr(); }
private: // Data
- std::string csName;
+ OString csName;
CBenNamedObjectListElmt cNameListElmt;
};
@@ -358,9 +358,9 @@ class CBenPropertyName : public CBenNamedObject
{
public: // Internal methods
CBenPropertyName(LtcBenContainer * pContainer, BenObjectID ObjectID,
- CUtListElmt * pPrevObject, const char * sName,
+ CUtListElmt * pPrevObject, const OString& rName,
CUtListElmt * pPrevNamedObjectListElmt) :
- CBenNamedObject(pContainer, ObjectID, pPrevObject, sName,
+ CBenNamedObject(pContainer, ObjectID, pPrevObject, rName,
pPrevNamedObjectListElmt) { ; }
virtual bool IsPropertyName() override;
};
@@ -369,9 +369,9 @@ class CBenTypeName : public CBenNamedObject
{
public: // Internal methods
CBenTypeName(LtcBenContainer * pContainer, BenObjectID ObjectID,
- CBenObject * pPrevObject, const char * sName,
+ CBenObject * pPrevObject, const OString& rName,
CUtListElmt * pPrevNamedObjectListElmt) :
- CBenNamedObject(pContainer, ObjectID, pPrevObject, sName,
+ CBenNamedObject(pContainer, ObjectID, pPrevObject, rName,
pPrevNamedObjectListElmt) { ; }
};
diff --git a/lotuswordpro/source/filter/tocread.cxx b/lotuswordpro/source/filter/tocread.cxx
index 8e7e79a855e4..ffd1bb52d409 100644
--- a/lotuswordpro/source/filter/tocread.cxx
+++ b/lotuswordpro/source/filter/tocread.cxx
@@ -309,9 +309,9 @@ CBenTOCReader::ReadTOC()
if (PropertyID == BEN_PROPID_GLOBAL_PROPERTY_NAME)
pObject = new CBenPropertyName(cpContainer, ObjectID,
- pPrevObject, sBuffer, pPrevNamedObjectListElmt);
+ pPrevObject, OString(sBuffer, Length), pPrevNamedObjectListElmt);
else pObject = new CBenTypeName(cpContainer, ObjectID,
- pPrevObject, sBuffer, pPrevNamedObjectListElmt);
+ pPrevObject, OString(sBuffer, Length), pPrevNamedObjectListElmt);
delete[] sAllocBuffer;
}