Kaydet (Commit) a1ad6ee0 authored tarafından Noel Grandin's avatar Noel Grandin

tdf#117103 Warning error is empty

regression from
    commit e9c74a07
    drop ErrCode::GetRest

Change-Id: I937478dbc9dd217255dc5cdecb6cf66d55394cba
Reviewed-on: https://gerrit.libreoffice.org/53153Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 0938ab46
......@@ -221,7 +221,7 @@ bool SfxErrorHandler::GetErrorString(ErrCode lErrId, OUString &rStr) const
for (const ErrMsgCode* pItem = pIds; pItem->second; ++pItem)
{
if (pItem->second == lErrId.StripWarningAndDynamic())
if (pItem->second.StripWarningAndDynamic() == lErrId.StripWarningAndDynamic())
{
rStr = rStr.replaceAll("$(ERROR)", Translate::get(pItem->first, aResLocale));
bRet = true;
......
......@@ -1281,7 +1281,7 @@ bool ErrorResource::getString(ErrCode nErrorCode, OUString &rString) const
{
for (const std::pair<const char*, ErrCode>* pStringArray = m_pStringArray; pStringArray->first != nullptr; ++pStringArray)
{
if (nErrorCode.StripWarningAndDynamic() == pStringArray->second)
if (nErrorCode.StripWarningAndDynamic() == pStringArray->second.StripWarningAndDynamic())
{
rString = Translate::get(pStringArray->first, m_rResLocale);
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment