summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-02 11:00:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-02 12:19:01 +0100
commit884cbe174ee5e343e9ed56093421aad3e467bf57 (patch)
treebb62e25fe5d1768cc1f493634573eb22473d2944 /svtools
parent11cc1afb2fd46c3dfdd519ad51c5fb2e7e3b7837 (diff)
RID_* can be extern global variables
no need to access them via methods Change-Id: If0d1a65d6f56ce2fc585749d974ba13c9f2749b2 Reviewed-on: https://gerrit.libreoffice.org/47245 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/ehdl.cxx26
1 files changed, 3 insertions, 23 deletions
diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx
index f73adec3c045..6c2406f57ae8 100644
--- a/svtools/source/misc/ehdl.cxx
+++ b/svtools/source/misc/ehdl.cxx
@@ -242,7 +242,7 @@ SfxErrorContext::SfxErrorContext(
: ErrorContext(pWindow), nCtxId(nCtxIdP), pIds(pIdsP), aResLocale(rResLocaleP)
{
if (!pIds)
- pIds = getRID_ERRCTX();
+ pIds = RID_ERRCTX;
}
@@ -253,7 +253,7 @@ SfxErrorContext::SfxErrorContext(
aArg1(aArg1P)
{
if (!pIds)
- pIds = getRID_ERRCTX();
+ pIds = RID_ERRCTX;
}
bool SfxErrorContext::GetString(ErrCode nErrId, OUString &rStr)
@@ -281,7 +281,7 @@ bool SfxErrorContext::GetString(ErrCode nErrId, OUString &rStr)
if ( bRet )
{
sal_uInt16 nId = nErrId.IsWarning() ? ERRCTX_WARNING : ERRCTX_ERROR;
- for (const ErrMsgCode* pItem = getRID_ERRCTX(); pItem->second; ++pItem)
+ for (const ErrMsgCode* pItem = RID_ERRCTX; pItem->second; ++pItem)
{
if (sal_uInt32(pItem->second) == nId)
{
@@ -294,24 +294,4 @@ bool SfxErrorContext::GetString(ErrCode nErrId, OUString &rStr)
return bRet;
}
-const ErrMsgCode* getRID_ERRHDL()
-{
- return RID_ERRHDL;
-}
-
-const ErrMsgCode* getRID_ERRCTX()
-{
- return RID_ERRCTX;
-}
-
-const ErrMsgCode* getRID_SO_ERROR_HANDLER()
-{
- return RID_SO_ERROR_HANDLER;
-}
-
-const ErrMsgCode* getRID_SO_ERRCTX()
-{
- return RID_SO_ERRCTX;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */