summaryrefslogtreecommitdiff
path: root/svtools/source/misc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-25 21:23:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-25 22:03:44 +0100
commit46bfe17e2bceced4ceffe82ba98d8687b31d9ce8 (patch)
tree8f5c0478aab8d4de36e01bc5029e2f6e696e549a /svtools/source/misc
parenta4bab9609b04cb644859cf548bb4739a9d5aa590 (diff)
Resolves: tdf#109331 stupid looking cast was relied upon to do useful thing
originally as... sal_uInt32 nErrIdx = aEr.FindIndex((sal_uInt16)(sal_uInt32)lErrId); prior to commit 00657aef09d854c74fb426a935a3e8b1fc390bb0 Date: Sun Jun 11 20:56:30 2017 +0100 migrate to boost::gettext Change-Id: I283f5398ebb81c7183c9013589c326c129787840
Diffstat (limited to 'svtools/source/misc')
-rw-r--r--svtools/source/misc/ehdl.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx
index a6be046e4647..6e38437f79ac 100644
--- a/svtools/source/misc/ehdl.cxx
+++ b/svtools/source/misc/ehdl.cxx
@@ -221,9 +221,11 @@ bool SfxErrorHandler::GetErrorString(ErrCode lErrId, OUString &rStr) const
bool bRet = false;
rStr = RID_ERRHDL_CLASS;
+ ErrCode nErrId((sal_uInt16)(sal_uInt32)lErrId);
+
for (const ErrMsgCode* pItem = pIds; pItem->second; ++pItem)
{
- if (pItem->second == lErrId)
+ if (pItem->second == nErrId)
{
rStr = rStr.replaceAll("$(ERROR)", Translate::get(pItem->first, *pResLocale));
bRet = true;