summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-08-19 14:16:29 +0200
committerNoel Grandin <noel@peralex.com>2013-08-22 10:49:25 +0200
commit05211578784c28365ec2b328090a01fc5dc0bfea (patch)
treecc575f0ea2c3bef15262333888cc19eb575b61c7 /svtools
parent7df895abf5219332217cea25698a99eb7fd10143 (diff)
Convert include/svtools/ehdl.hxx from String to OUString
and de-virtual SfxErrorContext::GetString, since nothing was overriding it. Change-Id: Ie274c57b22880742dd221c37284441b788dfb411
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/ehdl.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx
index b64901d3cc31..470e18e8cbbd 100644
--- a/svtools/source/misc/ehdl.cxx
+++ b/svtools/source/misc/ehdl.cxx
@@ -266,7 +266,7 @@ struct ErrorResource_Impl : private Resource
};
-sal_Bool SfxErrorHandler::GetClassString(sal_uLong lClassId, String &rStr) const
+sal_Bool SfxErrorHandler::GetClassString(sal_uLong lClassId, OUString &rStr) const
/* [Beschreibung]
@@ -358,12 +358,12 @@ sal_Bool SfxErrorHandler::GetErrorString(
if( bRet )
{
- String aErrStr;
+ OUString aErrStr;
GetClassString(lErrId & ERRCODE_CLASS_MASK,
aErrStr);
- if(aErrStr.Len())
- aErrStr += OUString(".\n");
- rStr = rStr.replaceAll(OUString("$(CLASS)"),aErrStr);
+ if(!aErrStr.isEmpty())
+ aErrStr += ".\n";
+ rStr = rStr.replaceAll("$(CLASS)",aErrStr);
}
return bRet;
@@ -382,7 +382,7 @@ SfxErrorContext::SfxErrorContext(
//-------------------------------------------------------------------------
SfxErrorContext::SfxErrorContext(
- sal_uInt16 nCtxIdP, const String &aArg1P, Window *pWindow,
+ sal_uInt16 nCtxIdP, const OUString &aArg1P, Window *pWindow,
sal_uInt16 nResIdP, ResMgr *pMgrP)
: ErrorContext(pWindow), nCtxId(nCtxIdP), nResId(nResIdP), pMgr(pMgrP),
aArg1(aArg1P)