summaryrefslogtreecommitdiff
path: root/uui/source/iahndl-errorhandler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'uui/source/iahndl-errorhandler.cxx')
-rw-r--r--uui/source/iahndl-errorhandler.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/uui/source/iahndl-errorhandler.cxx b/uui/source/iahndl-errorhandler.cxx
index 5c0c389607f1..72236f972f25 100644
--- a/uui/source/iahndl-errorhandler.cxx
+++ b/uui/source/iahndl-errorhandler.cxx
@@ -156,11 +156,11 @@ UUIInteractionHelper::handleErrorHandlerRequest(
= { RID_ERRHDL,
RID_SVXERRCODE,
RID_UUI_ERRHDL };
- ErrCode nErrorId = nErrorCode & ~ERRCODE_WARNING_MASK;
- Source eSource = nErrorId < ERRCODE_AREA_LIB1 ?
+ ErrCode nErrorId = nErrorCode.IgnoreWarning();
+ Source eSource = nErrorId < ErrCode(ERRCODE_AREA_LIB1) ?
SOURCE_DEFAULT :
- nErrorId >= ERRCODE_AREA_SVX
- && nErrorId <= ERRCODE_AREA_SVX_END ?
+ nErrorId >= ErrCode(ERRCODE_AREA_SVX)
+ && nErrorId <= ErrCode(ERRCODE_AREA_SVX_END) ?
SOURCE_SVX :
SOURCE_UUI;