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 00657aef09
Date: Sun Jun 11 20:56:30 2017 +0100
migrate to boost::gettext
Change-Id: I283f5398ebb81c7183c9013589c326c129787840
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user