summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svtools/source/misc/ehdl.cxx2
-rw-r--r--uui/source/iahndl.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx
index 246b55ae4a24..45f538371b42 100644
--- a/svtools/source/misc/ehdl.cxx
+++ b/svtools/source/misc/ehdl.cxx
@@ -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;
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index a7a6c8af7f93..63e3fbdea28a 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -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;