diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-16 16:35:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-19 07:36:12 +0100 |
commit | e9c74a075c3c0809b993c017c11d1505bd244dc8 (patch) | |
tree | 88cf68873c9b60941ced2ae0fda040496cbe0e2d /svtools | |
parent | 9d75bfcfaef97b247b3b6cd346eb27e02ae7b010 (diff) |
drop ErrCode::GetRest
it was always a broken API because it includes the code, the class, and
only part of the subsystemarea.
Change-Id: I6f88b54aed2feab02a6aeaa783d7c642054b8075
Reviewed-on: https://gerrit.libreoffice.org/51430
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.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx index 3ab4c7cedb9c..246b55ae4a24 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.GetRest() == lErrId.GetRest()) + if (pItem->second == lErrId.StripWarningAndDynamic()) { rStr = rStr.replaceAll("$(ERROR)", Translate::get(pItem->first, aResLocale)); bRet = true; |