summaryrefslogtreecommitdiff
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
parent7df895abf5219332217cea25698a99eb7fd10143 (diff)
Convert include/svtools/ehdl.hxx from String to OUString
and de-virtual SfxErrorContext::GetString, since nothing was overriding it. Change-Id: Ie274c57b22880742dd221c37284441b788dfb411
-rw-r--r--include/svtools/ehdl.hxx8
-rw-r--r--svtools/source/misc/ehdl.cxx12
2 files changed, 10 insertions, 10 deletions
diff --git a/include/svtools/ehdl.hxx b/include/svtools/ehdl.hxx
index 6958eaf82f08..33afac3fd3e8 100644
--- a/include/svtools/ehdl.hxx
+++ b/include/svtools/ehdl.hxx
@@ -37,15 +37,15 @@ public:
sal_uInt16 nCtxIdP, Window *pWin=0,
sal_uInt16 nResIdP=USHRT_MAX, ResMgr *pMgrP=0);
SfxErrorContext(
- sal_uInt16 nCtxIdP, const String &aArg1, Window *pWin=0,
+ sal_uInt16 nCtxIdP, const OUString &aArg1, Window *pWin=0,
sal_uInt16 nResIdP=USHRT_MAX, ResMgr *pMgrP=0);
- virtual bool GetString(sal_uLong nErrId, OUString &rStr);
+ bool GetString(sal_uLong nErrId, OUString &rStr);
private:
sal_uInt16 nCtxId;
sal_uInt16 nResId;
ResMgr *pMgr;
- String aArg1;
+ OUString aArg1;
};
class SVT_DLLPUBLIC SfxErrorHandler : private ErrorHandler
@@ -66,7 +66,7 @@ private:
ResMgr *pMgr;
ResMgr *pFreeMgr;
- SVT_DLLPRIVATE sal_Bool GetClassString(sal_uLong lErrId, String &) const;
+ SVT_DLLPRIVATE sal_Bool GetClassString(sal_uLong lErrId, OUString &) const;
virtual bool CreateString( const ErrorInfo *, OUString &, sal_uInt16 &) const;
};
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)