summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/benlist.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lotuswordpro/source/filter/benlist.cxx')
-rw-r--r--lotuswordpro/source/filter/benlist.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/benlist.cxx b/lotuswordpro/source/filter/benlist.cxx
index c80013ff293a..e092c7cf6cd1 100644
--- a/lotuswordpro/source/filter/benlist.cxx
+++ b/lotuswordpro/source/filter/benlist.cxx
@@ -58,7 +58,7 @@ namespace OpenStormBento
{
CBenNamedObject *
-FindNamedObject(CUtList * pList, const char * sName,
+FindNamedObject(CUtList * pList, const OString& rName,
CUtListElmt ** ppPrev)
{
CUtListElmt& rTerminating = pList->GetTerminating();
@@ -68,8 +68,8 @@ FindNamedObject(CUtList * pList, const char * sName,
CBenNamedObjectListElmt * pCurrNamedObjectListElmt =
static_cast<CBenNamedObjectListElmt *>(pCurr);
- int Comp = strcmp(sName, pCurrNamedObjectListElmt->GetNamedObject()->
- GetNameCStr());
+ sal_Int32 Comp = rName.compareTo(pCurrNamedObjectListElmt->GetNamedObject()->
+ GetName());
if (Comp == 0)
return pCurrNamedObjectListElmt->GetNamedObject();